﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: rgba(255, 255, 255, 0.18);
    --panel-bg: rgba(255, 255, 255, 0.92);
    --brand-bg: rgba(12, 27, 53, 0.74);
    --primary: #0f62fe;
    --primary-hover: #0b57e3;
    --danger: #d92d20;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

html, body, form {
    width: 100%;
    min-height: 100%;
    font-family: 'Inter', sans-serif;
}

body {
    color: var(--text);
    background: #0b1220;
}

.page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
    /* Full background image */
    background-image: url('../images/DES_SMART_Green.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 135deg, rgba(5, 10, 20, 0.78), rgba(10, 30, 60, 0.62) );
    backdrop-filter: blur(3px);
}

.shell {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1180px;
}

.card {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 680px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.brand {
    position: relative;
    padding: 42px 36px;
    color: var(--white);
    background: linear-gradient(180deg, rgba(9, 25, 48, 0.86), rgba(7, 18, 35, 0.78));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.logo {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.25);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    background: rgba(255,255,255,0.12);
}

.brand-title {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.brand-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.82);
}

.study-line {
    margin-top: 32px;
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255,255,255,0.12);
    line-height: 1.7;
}

.study-bold {
    font-weight: 700;
    color: #ffffff;
}

.study-text {
    color: rgba(255,255,255,0.92);
}

.brand-foot {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}

.panel {
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    padding: 46px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.panel-head {
    margin-bottom: 28px;
}

    .panel-head h1 {
        font-size: 32px;
        font-weight: 700;
        color: #111827;
        margin-bottom: 8px;
    }

    .panel-head p {
        color: var(--muted);
        font-size: 15px;
    }

.field {
    margin-bottom: 18px;
}

    .field label {
        display: inline-block;
        margin-bottom: 8px;
        font-size: 14px;
        font-weight: 600;
        color: #111827;
    }

.input-wrap {
    position: relative;
}

.input-ico {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 14px;
}

.input {
    width: 100%;
    height: 50px;
    padding: 0 46px 0 42px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    outline: none;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
    transition: all 0.25s ease;
}

    .input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(15, 98, 254, 0.12);
    }

.input-password {
    padding-right: 48px;
}

.eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    outline: none;
    background: transparent;
    color: #6b7280;
    font-size: 16px;
    cursor: pointer;
    width: 28px;
    height: 28px;
}

    .eye:hover {
        color: #111827;
    }

.val {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--danger);
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0 22px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
}

    .remember input[type="checkbox"] {
        accent-color: var(--primary);
    }

.forgot a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

    .forgot a:hover {
        text-decoration: underline;
    }

.btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .btn:hover {
        background: linear-gradient(135deg, var(--primary-hover), #2563eb);
        box-shadow: 0 14px 30px rgba(15, 98, 254, 0.22);
        transform: translateY(-1px);
    }

.error {
    min-height: 22px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--danger);
    text-align: center;
}

.footer {
    margin-top: 22px;
    text-align: center;
}

.muted {
    color: rgba(255, 255, 255, 0.82);
}

.panel .muted {
    color: #6b7280;
}

.mini-foot {
    margin-top: 16px;
    text-align: center;
    color: #e5e7eb;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 992px) {
    .card {
        grid-template-columns: 1fr;
    }

    .brand {
        padding: 30px 24px;
    }

    .panel {
        padding: 34px 24px;
    }

    .brand-title {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .page {
        padding: 14px;
    }

    .panel-head h1 {
        font-size: 26px;
    }

    .row {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        width: 80px;
        height: 80px;
    }
}
