/* Master Theme for Auth Pages */
body {
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    margin: 0;
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2.5rem;
    width: 100%;
    max-width: 600px;
    padding: 4.5rem;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

/* THE "DIM" LABELS */
.auth-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-left: 4px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.35); /* Dimmed out white */
}

.form-control {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white !important;
    padding: 0.9rem 1.2rem;
    border-radius: 1.1rem;
    transition: 0.3s ease;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.2) !important;
    font-size: 0.85rem;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(129, 140, 248, 0.5);
    box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.15);
}

.btn-primary {
    background: #818cf8;
    border: none;
    padding: 1.1rem;
    border-radius: 1.2rem;
    font-weight: 700;
    margin-top: 1rem;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #6366f1;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

.glass-footer {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.motto-item {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 600;
}
/* Icon Positioning */
.input-group-custom {
    position: relative;
}

.input-group-custom i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.25); /* Same dim color as labels */
    font-size: 0.9rem;
    transition: 0.3s;
}

/* Indent text to make room for the icon */
.input-group-custom .form-control {
    padding-left: 45px !important;
}

/* Highlight icon on focus */
.input-group-custom .form-control:focus + i {
    color: #818cf8;
}

/* CSS FOR TOAST ALERT  */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999 !important; /* Extremely high to stay above glass cards */
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
}

.toast-item {
    position: relative;
    overflow: hidden;
    /* Increased opacity from 0.08 to 0.15 for better visibility */
    background: rgba(15, 15, 15, 0.85); 
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 16px 24px;
    min-width: 320px;
    color: #ffffff !important; /* Force white text */
    display: flex;
    align-items: center;
    gap: 15px;
    /* Stronger shadow for depth */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Success & Error Glows */
.toast-item.success {
    border-left: 5px solid #2ecc71;
    background: rgba(20, 40, 30, 0.9); /* Darker green-tinted background */
}

.toast-item.error {
    border-left: 5px solid #e74c3c;
    background: rgba(45, 20, 20, 0.9); /* Darker red-tinted background */
}

.toast-item i {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

/* Progress Bar at the bottom */
.toast-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    transform-origin: left;
    animation: toastProgress 4s linear forwards;
}

.toast-item.success::after { background: #2ecc71; }
.toast-item.error::after   { background: #e74c3c; }

@keyframes toastSlideIn {
    from { transform: translateX(110%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}