/* =========================
   LOGIN PAGE
========================= */

body.login-page{
    min-height:100vh;
    background:
        radial-gradient(circle at top right, rgba(37,99,235,0.10), transparent 30%),
        radial-gradient(circle at bottom left, rgba(15,23,42,0.08), transparent 35%),
        linear-gradient(135deg, #f8fbff 0%, #eef4fb 100%);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:30px 15px;
}

/* =========================
   LOGIN WRAPPER
========================= */

.login-wrapper{
    width:100%;
    max-width:460px;
}

/* =========================
   LOGIN BOX
========================= */

.login-box{
    background:rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border:1px solid rgba(255,255,255,0.7);
    border-radius:24px;
    padding:38px 32px 28px;
    box-shadow:
        0 20px 60px rgba(15,23,42,0.12),
        0 8px 24px rgba(37,99,235,0.08);
    overflow:hidden;
    position:relative;
}

.login-box::before{
    content:"";
    position:absolute;
    top:0;
    right:0;
    left:0;
    height:6px;
    background:linear-gradient(90deg, #0f172a, #2563eb, #60a5fa);
}

/* =========================
   BRAND
========================= */

.login-brand{
    text-align:center;
    margin-bottom:26px;
}

.login-brand .brand-badge{
    width:72px;
    height:72px;
    margin:0 auto 16px;
    border-radius:20px;
    background:linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    font-weight:700;
    box-shadow:0 12px 25px rgba(29,78,216,0.22);
}

.login-brand h1{
    font-size:30px;
    line-height:1.5;
    color:#0f172a;
    margin-bottom:8px;
    font-weight:800;
}

.login-brand p{
    color:#64748b;
    font-size:14px;
    line-height:1.8;
}

/* =========================
   FORM
========================= */

.form-group{
    margin-bottom:18px;
}

.form-group label{
    display:block;
    margin-bottom:8px;
    font-size:15px;
    font-weight:700;
    color:#1e293b;
}

.input-wrap{
    position:relative;
}

input,
select,
textarea{
    width:100%;
    padding:14px 15px;
    border:1px solid #dbe3ee;
    border-radius:14px;
    font-size:15px;
    background:#fff;
    color:#0f172a;
    transition:all 0.25s ease;
    box-shadow: inset 0 1px 2px rgba(15,23,42,0.03);
}

input::placeholder,
textarea::placeholder{
    color:#94a3b8;
}

input:focus,
select:focus,
textarea:focus{
    outline:none;
    border-color:#2563eb;
    box-shadow:0 0 0 4px rgba(37,99,235,0.12);
    background:#fcfdff;
}

/* =========================
   BUTTON
========================= */

.login-btn{
    width:100%;
    border:none;
    border-radius:14px;
    padding:14px 18px;
    font-size:16px;
    font-weight:700;
    color:#fff;
    cursor:pointer;
    background:linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    box-shadow:0 12px 24px rgba(29,78,216,0.20);
    transition:transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.login-btn:hover{
    transform:translateY(-1px);
    box-shadow:0 16px 30px rgba(29,78,216,0.24);
}

.login-btn:active{
    transform:translateY(0);
}

/* =========================
   ALERT
========================= */

.alert{
    padding:13px 15px;
    border-radius:14px;
    margin-bottom:18px;
    font-size:14px;
    line-height:1.7;
}

.alert-error{
    background:#fff1f2;
    border:1px solid #fecdd3;
    color:#be123c;
}

/* =========================
   FOOTER
========================= */

.login-footer{
    text-align:center;
    margin-top:18px;
    color:#64748b;
    font-size:13px;
    line-height:1.8;
}

/* =========================
   SMALL DEV TEXT
========================= */

.dev-sign{
    margin-top:8px;
    font-size:13px;
    color:#94a3b8;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 576px){
    .login-box{
        padding:30px 20px 24px;
        border-radius:20px;
    }

    .login-brand h1{
        font-size:24px;
    }

    .login-brand .brand-badge{
        width:64px;
        height:64px;
        font-size:24px;
        border-radius:18px;
    }
}
/* =========================
   SYSTEM FORM PAGE
========================= */

.form-page-wrap{
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
}

.form-page-topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    margin-bottom:20px;
}

.form-page-topbar h1{
    margin:0;
    font-size:30px;
    color:#0f172a;
}

.form-card{
    background:#fff;
    border:1px solid #e8eef5;
    border-radius:22px;
    padding:24px;
    box-shadow:0 10px 24px rgba(15,23,42,0.05);
}

.system-form-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:14px;
}

.form-group.full-width{
    grid-column:1 / -1;
}

.form-group label{
    margin-bottom:8px;
    font-weight:700;
    color:#0f172a;
    font-size:15px;
}

.field-hint{
    margin-top:8px;
    color:#64748b;
    font-size:13px;
}

.form-actions-row{
    margin-top:20px;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.primary-btn{
    border:none;
    background:linear-gradient(135deg,#0f172a,#1d4ed8);
    color:#fff;
    padding:12px 18px;
    border-radius:12px;
    cursor:pointer;
    font-weight:700;
    font-size:15px;
}

.back-btn{
    display:inline-block;
    text-decoration:none;
    background:#fff;
    color:#1d4ed8;
    border:1px solid #dbe7f5;
    padding:10px 16px;
    border-radius:12px;
    font-weight:700;
    box-shadow:0 4px 12px rgba(0,0,0,0.04);
}

@media (max-width:768px){
    .form-page-topbar h1{
        font-size:24px;
    }

    .form-card{
        padding:18px;
    }
}
.system-toast{
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 99999;
    min-width: 280px;
    max-width: 420px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 35px rgba(0,0,0,0.18);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all .35s ease;
    font-size: 15px;
    font-weight: 700;
}

.system-toast.show{
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.system-toast .toast-icon{
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.system-toast .toast-text{
    line-height: 1.8;
}

.system-toast.error{
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

@media (max-width: 768px){
    .system-toast{
        top: 14px;
        left: 14px;
        right: 14px;
        min-width: auto;
        max-width: none;
        font-size: 14px;
    }
}
/* =========================
   SYSTEM FORM PAGE
========================= */

.form-page-wrap{
    max-width: 1200px;
    margin: 0 auto;
    padding: 34px 24px;
}

.form-page-topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:14px;
    flex-wrap:wrap;
    margin-bottom:22px;
}

.form-page-topbar h1{
    margin:0;
    font-size:32px;
    color:#0f172a;
    font-weight:900;
}

.form-card{
    background:#ffffff;
    border:1px solid #e5edf6;
    border-radius:26px;
    padding:28px;
    box-shadow:0 14px 30px rgba(15,23,42,0.05);
}

.system-form-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:18px 20px;
}

.form-group{
    display:flex;
    flex-direction:column;
}

.form-group.full-width{
    grid-column:1 / -1;
}

.form-group label{
    margin-bottom:9px;
    font-weight:800;
    color:#0f172a;
    font-size:15px;
}

.form-group input,
.form-group select,
.form-group textarea{
    width:100%;
    padding:14px 16px;
    border:1px solid #d7e1ec;
    border-radius:14px;
    background:#fff;
    font-size:15px;
    color:#0f172a;
    transition:all .2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
    outline:none;
    border-color:#1d4ed8;
    box-shadow:0 0 0 4px rgba(29,78,216,0.10);
    background:#fcfdff;
}

.form-group textarea{
    min-height:120px;
    resize:vertical;
}

.field-hint{
    margin-top:8px;
    color:#64748b;
    font-size:13px;
}

.form-section-title{
    grid-column:1 / -1;
    margin:4px 0 -2px;
    padding:0 2px;
    font-size:16px;
    font-weight:900;
    color:#1d4ed8;
}

.form-actions-row{
    margin-top:24px;
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.primary-btn{
    border:none;
    background:linear-gradient(135deg,#0f172a,#1d4ed8);
    color:#fff;
    padding:13px 22px;
    border-radius:14px;
    cursor:pointer;
    font-weight:800;
    font-size:15px;
    box-shadow:0 10px 20px rgba(29,78,216,0.18);
    transition:all .2s ease;
}

.primary-btn:hover{
    transform:translateY(-1px);
}

.back-btn{
    display:inline-block;
    text-decoration:none;
    background:#fff;
    color:#1d4ed8;
    border:1px solid #dbe7f5;
    padding:12px 18px;
    border-radius:14px;
    font-weight:800;
    box-shadow:0 4px 12px rgba(0,0,0,0.04);
}

.form-note-bar{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:14px;
    margin-bottom:20px;
}

.form-note-box{
    background:#ffffff;
    border:1px solid #e7edf5;
    border-radius:18px;
    padding:16px 18px;
    box-shadow:0 8px 20px rgba(15,23,42,0.04);
}

.form-note-box .small{
    font-size:12px;
    color:#64748b;
    margin-bottom:6px;
}

.form-note-box .big{
    font-size:18px;
    font-weight:900;
    color:#0f172a;
}

@media (max-width: 900px){
    .system-form-grid{
        grid-template-columns:1fr;
    }

    .form-note-bar{
        grid-template-columns:1fr;
    }
}

@media (max-width:768px){
    .form-page-wrap{
        padding:20px 14px;
    }

    .form-page-topbar h1{
        font-size:24px;
    }

    .form-card{
        padding:18px;
        border-radius:20px;
    }
}