@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background: #0f0f1a;
    min-height: 100vh;
}

/* ── WRAPPER ── */
.dp-login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px 20px;
    background: #0f0f1a;
    position: relative;
    overflow: hidden;
}

/* Ambient orbs */
.dp-login-page::before {
    content: '';
    position: fixed;
    top: -20%;
    right: -10%;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 70%);
    animation: floatOrb 9s ease-in-out infinite;
    pointer-events: none;
}

.dp-login-page::after {
    content: '';
    position: fixed;
    bottom: -20%;
    left: -10%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(99,102,241,0.14) 0%, transparent 70%);
    animation: floatOrb 12s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(28px, -36px) scale(1.04); }
    66%       { transform: translate(-18px, 18px) scale(0.97); }
}

/* ── CARD ── */
.dp-login-card {
    width: 100%;
    max-width: 900px;
    background: #16162a;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 30px 90px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04) inset;
    position: relative;
    z-index: 1;
}

/* ── LEFT PANEL ── */
.dp-login-left {
    flex: 1;
    padding: 60px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dp-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #a78bfa;
    margin-bottom: 36px;
}

.dp-brand::before {
    content: '';
    display: inline-block;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    border-radius: 7px;
    flex-shrink: 0;
}

.dp-login-left h1 {
    font-size: 32px;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -0.025em;
}

.dp-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 40px;
    line-height: 1.65;
}

/* ── ERROR ── */
.dp-error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(248,113,113,0.09);
    border: 1px solid rgba(248,113,113,0.25);
    color: #f87171;
    font-size: 13px;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    animation: shake 0.4s ease;
}

.dp-error::before {
    content: '⚠';
    flex-shrink: 0;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60%  { transform: translateX(-5px); }
    40%, 80%  { transform: translateX(5px); }
}

/* ── INPUT BOX ── */
.dp-input-box {
    position: relative;
    margin-bottom: 18px;
}

.dp-input-box .input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #475569;
    font-size: 14px;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s;
}

.dp-input-box input {
    width: 100%;
    height: 56px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 14px;
    padding: 0 48px;
    font-size: 14px;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.dp-input-box input::placeholder { color: transparent; }

.dp-input-box input:focus {
    border-color: #7c3aed;
    background: rgba(124,58,237,0.07);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.25);
}

.dp-input-box input:focus ~ .input-icon { color: #a78bfa; }

/* Floating label */
.dp-input-box label {
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 14px;
    pointer-events: none;
    transition: all 0.2s ease;
    background: transparent;
    border-radius: 4px;
    white-space: nowrap;
}

.dp-input-box input:focus + label,
.dp-input-box input:valid + label {
    top: -1px;
    left: 14px;
    transform: translateY(-50%);
    font-size: 11px;
    color: #a78bfa;
    background: #16162a;
    padding: 0 6px;
    font-weight: 600;
}

/* Eye toggle */
.eye-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #475569;
    font-size: 14px;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s;
    padding: 4px;
}

.eye-icon:hover { color: #a78bfa; }

/* ── LOGIN BUTTON ── */
.dp-login-btn {
    width: 100%;
    height: 54px;
    margin-top: 6px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.25s;
    box-shadow: 0 4px 22px rgba(124,58,237,0.45);
    letter-spacing: 0.01em;
}

.dp-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(124,58,237,0.6);
}

.dp-login-btn:active { transform: translateY(0); }

/* Spinner */
.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    position: absolute;
}

.dp-login-btn.loading .btn-text { opacity: 0; }
.dp-login-btn.loading .spinner  { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ── RIGHT PANEL ── */
.dp-login-right {
    width: 310px;
    flex-shrink: 0;
    background: linear-gradient(160deg, #1e1040 0%, #11112a 100%);
    border-left: 1px solid rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 52px 36px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.dp-login-right::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(124,58,237,0.3) 0%, transparent 70%);
    pointer-events: none;
}

.dp-login-right::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
    pointer-events: none;
}

.dp-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 28px;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
    box-shadow: 0 12px 40px rgba(124,58,237,0.55);
    animation: pulseRing 3s ease-in-out infinite;
}

@keyframes pulseRing {
    0%, 100% { box-shadow: 0 12px 40px rgba(124,58,237,0.55), 0 0 0 0   rgba(124,58,237,0.35); }
    50%       { box-shadow: 0 12px 40px rgba(124,58,237,0.55), 0 0 0 16px rgba(124,58,237,0); }
}

.dp-login-right h2 {
    font-size: 22px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.dp-login-right > p {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 36px;
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

.dp-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.feature {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 13px;
    color: #cbd5e1;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    text-align: left;
}

.feature:hover {
    background: rgba(124,58,237,0.14);
    border-color: rgba(124,58,237,0.35);
    transform: translateX(-3px);
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
    .dp-login-card { flex-direction: column; }
    .dp-login-right {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.07);
        padding: 32px 24px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }
    .dp-circle { width: 52px; height: 52px; font-size: 16px; margin-bottom: 0; }
    .dp-login-right h2, .dp-login-right > p { display: none; }
    .dp-features { flex-direction: row; justify-content: center; }
    .feature { font-size: 12px; padding: 8px 12px; }
    .dp-login-left { padding: 40px 28px; }
}