/* ====================== SHARED AUTH STYLES ====================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b0f19;
    font-family: 'Cairo', sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* Animated Mesh Gradient Background */
.mesh-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(at 0% 0%, rgba(0, 94, 184, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(96, 165, 250, 0.1) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(15, 23, 42, 1) 0px, transparent 100%);
    opacity: 0.8;
}

.auth-container {
    width: 95%;
    /* Better for mobile */
    max-width: 480px;
    padding: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.glass-card {
    width: 100%;
    background: rgba(30, 41, 59, 0.5);
    /* Slightly more opaque */
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 35px;
    padding: 50px 35px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.6);
    animation: auth-slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    /* Contain children */
}

@keyframes auth-slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.brand-logo {
    display: block;
    margin: 0 auto 30px;
    height: 60px;
    filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.3));
}

.auth-title {
    color: white;
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
}

.auth-subtitle {
    color: #94a3b8;
    font-size: 15px;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
}

.form-label {
    display: block;
    color: #e2e8f0;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.form-control {
    width: 100%;
    max-width: 100%;
    padding: 18px 20px 18px 50px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: white;
    font-size: 15px;
    transition: all 0.3s;
    text-align: right;
    font-family: inherit;
    display: block;
}

.form-control:focus {
    outline: none;
    border-color: #38bdf8;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    transition: color 0.3s;
}

.form-control:focus+.input-icon {
    color: #38bdf8;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #005eb8, #3b82f6);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(0, 94, 184, 0.2);
    font-family: inherit;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 94, 184, 0.3);
    filter: brightness(1.1);
}

.auth-links {
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    color: #94a3b8;
}

.auth-links a {
    color: #38bdf8;
    font-weight: 700;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 30px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.back-link:hover {
    color: white;
}

.back-link i {
    margin-left: 8px;
    font-size: 12px;
}

.decoration-circle {
    z-index: 1;
}

/* Register Specifics */
.register-container {
    max-width: 500px;
}

.register-card {
    padding: 40px;
}

.form-check-label {
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
}

.btn-success-gradient {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

.btn-success-gradient:hover {
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3);
}