﻿/* ═══════════════════════════════════════════════════════
   AZAM LEAGUE — LOGIN PAGE
   Bara Pulse Theme: Dark Navy + Orange/Amber/Gold
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:wght@700;900&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body, .login-body {
    height: 100%;
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0c0f14;
    position: relative;
    padding-right: 20%;
}

/* ── Animated gradient background ── */
.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse 70% 50% at 20% 80%, rgba(212, 69, 26, 0.08) 0%, transparent 70%), radial-gradient(ellipse 60% 40% at 80% 20%, rgba(245, 166, 35, 0.06) 0%, transparent 60%), radial-gradient(ellipse 50% 60% at 50% 50%, rgba(232, 121, 27, 0.03) 0%, transparent 50%);
    animation: bgShift 12s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* Subtle grid */
.bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ── Player illustration — animated (dual-colour: orange + purple) ── */
.bg-player-wrap {
    position: fixed;
    right: 2%;
    bottom: -30px;
    height: 88vh;
    pointer-events: none;
    z-index: 1;
    user-select: none;
    opacity: 0;
    mix-blend-mode: screen;
    animation: playerEntrance 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards,
               playerFloat 6s ease-in-out 1.5s infinite;
}

.bg-player {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: screen;
}

/* Orange outline — shows at bottom half, fades to transparent going up */
.player-orange {
    filter: invert(1) sepia(1) saturate(50) hue-rotate(-15deg) brightness(2.5) contrast(1.1);
    -webkit-mask-image: linear-gradient(to top, black 30%, transparent 70%);
    mask-image: linear-gradient(to top, black 30%, transparent 70%);
}

/* Purple outline — shows at top half, fades to transparent going down */
.player-purple {
    filter: invert(1) sepia(1) saturate(30) hue-rotate(280deg) brightness(2.2);
    opacity: 0.95;
    -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 70%);
    mask-image: linear-gradient(to bottom, black 30%, transparent 70%);
}

@keyframes playerEntrance {
    from {
        opacity: 0;
        transform: translateX(80px) translateY(40px) scale(0.9);
    }
    to {
        opacity: 0.6;
        transform: translateX(0) translateY(0) scale(1);
    }
}

@keyframes playerFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-14px);
    }
}

/* ── Card ── */
.login-card {
    position: relative;
    z-index: 1;
    width: 400px;
    max-width: calc(100vw - 40px);
    background: rgba(21, 28, 43, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 40px 36px 36px;
    zoom: 1.1;
    animation: cardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

    .login-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 24px;
        right: 24px;
        height: 3px;
        border-radius: 0 0 3px 3px;
        background: linear-gradient(90deg, #6B2FA0, #D946EF, #BE123C, #e8791b, #f5a623);
    }

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Brand ── */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 11px;
}

.brand > div:last-child {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 900;
    background: linear-gradient(135deg, #8B5CF6, #D946EF, #EC4899, #e8791b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

/* ── Header ── */
.header {
    margin-bottom: 28px;
}

    .header h2 {
        display: none;
    }

    .header p {
        font-size: 14px;
        color: #ffffff;
        font-weight: 400;
    }

/* ── Fields ── */
.field {
    margin-bottom: 18px;
}

.field-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #f5a623;
    margin-bottom: 8px;
}

.field-box {
    position: relative;
}

.field-input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(30, 40, 64, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #f0f2f5;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.25s ease;
    outline: none;
}

    .field-input:hover {
        border-color: rgba(255, 255, 255, 0.12);
        background: rgba(30, 40, 64, 0.9);
    }

    .field-input:focus {
        border-color: #D946EF;
        background: rgba(21, 28, 43, 0.95);
        box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.12);
    }

    .field-input::placeholder {
        color: rgba(240, 242, 245, 0.2);
    }

/* ── Button ── */
.btn {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #8B5CF6 0%, #D946EF 40%, #e8791b 100%);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 24px rgba(217, 70, 239, 0.3), 0 4px 12px rgba(232, 121, 27, 0.2);
    }

    .btn:active {
        transform: translateY(0);
    }

    .btn::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 60%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
        transition: left 0.5s ease;
    }

    .btn:hover::after {
        left: 120%;
    }

/* ── Alert ── */
.alert {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    font-size: 13px;
    font-weight: 400;
    text-align: center;
}

/* ── Validation ── */
.field-validation-error,
.validation-summary-errors {
    color: #fca5a5;
    font-size: 12px;
    margin-top: 6px;
    display: block;
}

.input-validation-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* ── Footer ── */
.login-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 14px 28px;
    text-align: center;
    background: linear-gradient(0deg, rgba(12, 15, 20, 0.9) 0%, transparent 100%);
}

.login-footer p {
    font-size: 11px;
    color: #ffffff;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.login-footer a {
    color: #e8791b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.login-footer a:hover {
    color: #f5a623;
    text-shadow: 0 0 10px rgba(232, 121, 27, 0.6);
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .login-body {
        padding-right: 0;
        justify-content: center;
    }

    .bg-player {
        right: -10%;
        height: 70vh;
        animation: playerEntrance 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards,
                   playerFloat 6s ease-in-out 1.5s infinite;
    }

    @keyframes playerEntrance {
        to {
            opacity: 0.06;
        }
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px 28px;
        border-radius: 12px;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .brand > div:last-child {
        font-size: 17px;
    }

    .bg-player {
        height: 50vh;
        right: -20%;
    }
}
