/*
==========================================================
Общие стили системы
==========================================================
*/

:root {

    --primary: #2563eb;
    --primary-hover: #1d4ed8;

    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;

    --text: #1f2937;
    --text-light: #6b7280;

    --background: #f5f7fb;

    --white: #ffffff;

    --border: #e5e7eb;

    --radius: 12px;

    --shadow: 0 8px 25px rgba(0,0,0,.08);

    --transition: .25s;

    --sidebar-width: 260px;

    --header-height: 72px;

}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{

    scroll-behavior:smooth;

}

body{

    background:var(--background);

    color:var(--text);

    font-family:
        "Segoe UI",
        Tahoma,
        Geneva,
        Verdana,
        sans-serif;

    font-size:15px;

    line-height:1.5;

}

a{

    color:inherit;

    text-decoration:none;

    transition:var(--transition);

}

img{

    max-width:100%;

    display:block;

}

button{

    border:none;

    cursor:pointer;

    transition:var(--transition);

    font-family:inherit;

}

input,
select,
textarea{

    width:100%;

    padding:12px 15px;

    border:1px solid var(--border);

    border-radius:10px;

    background:#fff;

    font-size:15px;

    transition:.2s;

}

input:focus,
select:focus,
textarea:focus{

    outline:none;

    border-color:var(--primary);

    box-shadow:0 0 0 3px rgba(37,99,235,.15);

}

textarea{

    resize:vertical;

    min-height:120px;

}

label{

    display:block;

    margin-bottom:8px;

    font-weight:600;

}

.container-page{

    padding:30px;

}

.card{

    background:var(--white);

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    padding:25px;

    margin-top: 20px;

}

.page-title{

    font-size:28px;

    font-weight:700;

    margin-bottom:25px;

}

.btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    padding:12px 20px;

    border-radius:10px;

    font-weight:600;

}

.btn-primary{

    background:var(--primary);

    color:#fff;

}

.btn-primary:hover{

    background:var(--primary-hover);

}

.btn-success{

    background:var(--success);

    color:#fff;

}

.btn-danger{

    background:var(--danger);

    color:#fff;

}

.btn-secondary{

    background:#64748b;

    color:#fff;

}

.table{

    width:100%;

    border-collapse:collapse;

}

.table th{

    background:#f8fafc;

    padding:14px;

    border-bottom:1px solid var(--border);

    text-align:left;

}

.table td{

    padding:14px;

    border-bottom:1px solid var(--border);

}

.table tr:hover{

    background:#fafafa;

}

.badge{

    display:inline-block;

    padding:5px 12px;

    border-radius:30px;

    font-size:13px;

    font-weight:600;

}

.badge-success{

    background:#dcfce7;

    color:#166534;

}

.badge-warning{

    background:#fef3c7;

    color:#92400e;

}

.badge-danger{

    background:#fee2e2;

    color:#991b1b;

}

.text-center{

    text-align:center;

}

.mt-20{

    margin-top:20px;

}

.mb-20{

    margin-bottom:20px;

}

.hidden{

    display:none;

}

/* ==========================================================
   Страница авторизации
   ========================================================== */


.login-wrapper {

    min-height: 100vh;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 20px;

}



.login-card {

    width: 100%;

    max-width: 420px;

    background: var(--white);

    padding: 35px;

    border-radius: 20px;

    box-shadow: var(--shadow);

}



.login-card h1 {

    text-align: center;

    font-size: 28px;

    font-weight: 700;

    margin-bottom: 10px;

}



.subtitle {

    text-align: center;

    color: var(--text-light);

    margin-bottom: 30px;

}



.login-card .form-group {

    margin-bottom: 20px;

}



.login-card input {

    height: 48px;

}



.login-card .btn-primary {

    width: 100%;

    height: 48px;

    margin-top: 10px;

    border-radius: 10px;

}



.alert {

    padding: 12px 15px;

    margin-bottom: 20px;

    border-radius: 10px;

    background: #fee2e2;

    color: #991b1b;

}