:root {
    --primary: #4f46e5;
    --accent: #14b8a6;
    --bg: linear-gradient(135deg, #1e2937, #334155);
    --card: rgba(255,255,255,0.95);
    --text: #1e2937;
}

* { margin:0; padding:0; box-sizing:border-box; }
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 10px;
}

.auth-card {
    background: var(--card);
    backdrop-filter: blur(16px);
    border-radius: 14px;
    padding: 40px 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.3);
    -webkit-border-radius: 14px;
    -moz-border-radius: 14px;
    -ms-border-radius: 14px;
    -o-border-radius: 14px;
}

h1 { font-size: 1.8rem; color: var(--primary); margin-bottom: 8px; }
h2 { font-size: 1.4rem; margin-bottom: 30px; color: #475569; }

input, select {
    width: 100%;
    padding: 14px 16px;
    margin: 12px 0;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, var(--primary), #6366f1);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(79,70,229,0.4);
}

.error { color: #ef4444; }
.success { color: #10b981; }

.success-box{
    background:linear-gradient(135deg,#22c55e,#16a34a);
    color:#fff;
    padding:12px;
    border-radius:10px;
    margin-bottom:15px;
    text-align:center;
    font-weight:600;
    box-shadow:0 5px 15px rgba(0,0,0,0.2);
}

.success-popup{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:999;
}

.popup-box{
    background:#fff;
    padding:30px;
    border-radius:12px;
    text-align:center;
    animation:scaleIn 0.4s ease;
}

.popup-box h2{
    color:#1e3a8a;
}

.popup-box .btn{
    display:inline-block;
    margin-top:15px;
    padding:10px 20px;
    background:#1e3a8a;
    color:#fff;
    text-decoration:none;
    border-radius:6px;
}

@keyframes scaleIn{
    from{transform:scale(0.7);opacity:0;}
    to{transform:scale(1);opacity:1;}
}

/* ================= PASSWORD FIELD ================= */
.password-group {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.password-group input {
    width: 100%;
    padding: 12px 45px 12px 12px; /* space for eye */
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

.password-group input:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 5px rgba(30, 58, 138, 0.2);
}

/* 👁 ICON */
.password-group .toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 22px;   /* 🔥 bigger eye */
    color: #555;
    transition: 0.3s;
}

.password-group .toggle:hover {
    color: #1e3a8a;
    transform: translateY(-50%) scale(1.2);
}

/* ================= MOBILE ================= */
@media (max-width: 600px) {

    .password-group input {
        padding: 14px 50px 14px 14px;
        font-size: 15px;
    }

    .password-group .toggle {
        font-size: 24px; /* bigger on mobile */
        right: 10px;
    }
}

/* ================= TABLET ================= */
@media (min-width: 601px) and (max-width: 1024px) {

    .password-group input {
        font-size: 16px;
    }

    .password-group .toggle {
        font-size: 23px;
    }
}