:root {
    --primary: #10b981;
    --primary-hover: #059669;
    --slate-900: #0f172a;
    --slate-700: #334155;
    --bg-soft: #f8fafc;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.01em;
    margin: 0;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 24px 16px;
    background-color: var(--slate-900);
}

body::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background-image: url('../../../images/dlsud.png');
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.6);
    z-index: -1;
}

.login-card {
    background: white;
    width: min(100%, 420px);
    padding: 32px 24px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    animation: fadeIn 0.4s ease-out;
    position: relative;
    z-index: 1;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.header { text-align: center; margin-bottom: 28px; }
.header i { font-size: 2.5rem; color: var(--primary); margin-bottom: 12px; }
.header h2 { color: var(--slate-900); font-weight: 700; font-size: 1.5rem; }
.header p { color: #64748b; font-size: 0.9rem; margin-top: 8px; line-height: 1.5; }

.error-box { background: #fef2f2; color: #b91c1c; padding: 12px; border-radius: 8px; font-size: 0.85rem; font-weight: 500; margin-bottom: 20px; }
.success-box { background: #ecfdf5; color: #047857; padding: 12px; border-radius: 8px; font-size: 0.85rem; font-weight: 500; margin-bottom: 20px; border: 1px solid #a7f3d0; }

.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--slate-700); margin-bottom: 6px; text-transform: uppercase; }
.input-group input, .input-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: 0.2s;
    background: white;
}
.input-group input:focus, .input-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1); }

.btn-submit {
    width: 100%; background: var(--primary); color: white; border: none;
    padding: 14px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s;
}
.btn-submit:hover { background: var(--primary-hover); transform: translateY(-1px); }
.resend-form { margin-top: 12px; text-align: center; }
.resend-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}
.resend-btn:disabled {
    color: #94a3b8;
    cursor: not-allowed;
    text-decoration: none;
}
.footer { margin-top: 24px; text-align: center; font-size: 0.85rem; color: #94a3b8; }
.footer a { color: var(--primary); text-decoration: none; font-weight: 600; transition: 0.2s; }
.footer a:hover { color: var(--primary-hover); }
.policy-text { font-size: 0.75rem; margin-top: 15px; color: #cbd5e1; }

@media (max-width: 1024px) {
    body { padding: 20px 16px; }
    .login-card { width: min(100%, 460px); }
}

@media (max-width: 768px) {
    body { padding: 12px; }
    .login-card {
        width: 100%;
        max-width: 100%;
        padding: 24px 18px;
        border-radius: 18px;
    }
    .header { margin-bottom: 24px; }
    .header h2 { font-size: 1.35rem; }
    .header p { font-size: 0.88rem; }
    .input-group { margin-bottom: 16px; }
    .input-group input, .input-group select, .btn-submit { min-height: 48px; }
    .btn-submit { font-size: 0.98rem; }
}
