/* =====================================================
   Muayyan - Authentication Pages Styles
   ===================================================== */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a1628 0%, #0f2744 30%, #143a5c 60%, #1e6fa0 100%);
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: 
        radial-gradient(circle 400px at 20% 30%, rgba(93,173,226,0.08) 0%, transparent 100%),
        radial-gradient(circle 500px at 80% 70%, rgba(0,212,170,0.06) 0%, transparent 100%);
    animation: auth-bg-move 20s ease-in-out infinite;
}

@keyframes auth-bg-move {
    0%, 100% { transform: translate(0,0) rotate(0deg); }
    50% { transform: translate(-1%,3%) rotate(-1deg); }
}

.auth-shapes {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 0;
}

.auth-shapes .shape {
    position: absolute; border-radius: 50%; opacity: 0.05; background: #fff;
}
.auth-shapes .shape:nth-child(1) { width:300px;height:300px;top:-80px;right:-100px;animation:float-shape 15s ease-in-out infinite; }
.auth-shapes .shape:nth-child(2) { width:200px;height:200px;bottom:-50px;left:-60px;animation:float-shape 18s ease-in-out infinite reverse; }
.auth-shapes .shape:nth-child(3) { width:150px;height:150px;top:40%;right:15%;animation:float-shape 12s ease-in-out infinite; }
.auth-shapes .shape:nth-child(4) { width:80px;height:80px;top:20%;left:20%;animation:float-shape 10s ease-in-out infinite reverse; }

@keyframes float-shape {
    0%, 100% { transform: translate(0,0); }
    33% { transform: translate(30px,-30px); }
    66% { transform: translate(-20px,20px); }
}

.auth-card {
    position: relative; z-index: 1; width: 100%; max-width: 440px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    border-radius: 24px; padding: 45px 40px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.5);
    animation: auth-card-enter 0.6s ease;
}

@keyframes auth-card-enter {
    from { opacity:0; transform:translateY(30px) scale(0.96); }
    to { opacity:1; transform:translateY(0) scale(1); }
}

.auth-logo { text-align: center; margin-bottom: 30px; }

.auth-logo img {
    width: 70px; height: 70px; object-fit: contain; margin-bottom: 15px;
    filter: drop-shadow(0 4px 12px rgba(30,111,160,0.3));
    animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% { filter: drop-shadow(0 4px 12px rgba(30,111,160,0.3)); }
    50% { filter: drop-shadow(0 4px 20px rgba(30,111,160,0.5)); }
}

.auth-logo h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: 3px; color: #0f2744; margin-bottom: 5px; }
.auth-logo p { font-size: 0.78rem; color: #8e8ea0; font-weight: 500; }

.auth-form .form-floating { margin-bottom: 18px; }

.auth-form .form-floating .form-control {
    height: 52px; border: 2px solid #e8e8f0; border-radius: 8px; font-size: 0.9rem;
    padding-left: 45px; transition: all 0.15s ease; background: #fafafc;
}

.auth-form .form-floating .form-control:focus {
    border-color: #2e86c1; box-shadow: 0 0 0 4px rgba(46,134,193,0.1); background: #fff;
}

.auth-form .form-floating label { padding-left: 45px; font-size: 0.85rem; color: #8e8ea0; }

.auth-form .input-icon {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    color: #b0b0c0; z-index: 5; font-size: 1rem; transition: color 0.15s ease;
}
.auth-form .form-floating:focus-within .input-icon { color: #2e86c1; }

.auth-form .btn-login {
    width: 100%; height: 50px; font-size: 0.95rem; font-weight: 700;
    background: linear-gradient(135deg, #1a5276, #2e86c1); border: none;
    border-radius: 8px; color: #fff; position: relative; overflow: hidden;
    transition: all 0.3s ease; letter-spacing: 0.5px;
}

.auth-form .btn-login::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}
.auth-form .btn-login:hover::before { left: 100%; }
.auth-form .btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(30,111,160,0.4); }

.auth-links { text-align: center; margin-top: 20px; }
.auth-links a { font-size: 0.8rem; font-weight: 500; color: #2e86c1; }
.auth-links a:hover { color: #1a5276; }

.auth-footer { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid #e8e8f0; }
.auth-footer p { font-size: 0.72rem; color: #b0b0c0; }

.auth-alert {
    padding: 12px 16px; border-radius: 8px; font-size: 0.8rem; font-weight: 500;
    margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
    animation: shake 0.4s ease;
}
.auth-alert.error { background: rgba(231,76,60,0.08); color: #e74c3c; border: 1px solid rgba(231,76,60,0.15); }
.auth-alert.success { background: rgba(39,174,96,0.08); color: #27ae60; border: 1px solid rgba(39,174,96,0.15); }

@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} }

.demo-credentials {
    background: linear-gradient(135deg, #d6eaf8, #eaf2f8);
    border: 1px dashed #aed6f1; border-radius: 8px; padding: 14px 16px; margin-top: 20px;
}
.demo-credentials h6 { font-size: 0.75rem; font-weight: 700; color: #1a5276; margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.demo-credentials .cred-item { display: flex; justify-content: space-between; font-size: 0.72rem; padding: 3px 0; color: #6c6c8a; }
.demo-credentials .cred-item strong { color: #143a5c; }

.password-toggle {
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #b0b0c0; cursor: pointer; z-index: 5;
}
.password-toggle:hover { color: #2e86c1; }

.auth-icon-large {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, #aed6f1, #d6eaf8);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-size: 2rem; color: #1e6fa0;
}

@media (max-width: 575.98px) {
    .auth-card { padding: 30px 25px; border-radius: 16px; }
    .auth-logo h2 { font-size: 1.3rem; }
}
