/* ===================================
   GibsFest 2K26 - Login Page Styles
   F1-Inspired Racing Theme
   =================================== */

/* ===== CSS Variables ===== */
:root {
    --color-red-primary: #E10600;
    --color-red-dark: #B10500;
    --color-red-light: #FF1E00;
    --color-black: #15151E;
    --color-black-light: #1E1E2E;
    --color-white: #FFFFFF;
    --color-silver: #C0C0C0;
    --gradient-red: linear-gradient(135deg, #E10600 0%, #FF1E00 100%);
    --gradient-dark: linear-gradient(135deg, #15151E 0%, #1E1E2E 100%);
    --neon-red: 0 0 10px #E10600, 0 0 20px #E10600, 0 0 30px #E10600;
    --font-primary: 'Rajdhani', sans-serif;
    --font-secondary: 'Orbitron', monospace;
    --transition-normal: 0.3s ease;
}

/* ===== Global Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: var(--color-black);
    color: var(--color-white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===== Racing Background Animation ===== */
.racing-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    background: linear-gradient(135deg, #15151E 0%, #1E1E2E 50%, #15151E 100%);
}

.racing-line {
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(225, 6, 0, 0.3), transparent);
    animation: racingLine 3s linear infinite;
}

.racing-line:nth-child(1) {
    top: 10%;
    animation-delay: 0s;
}

.racing-line:nth-child(2) {
    top: 30%;
    animation-delay: 0.6s;
}

.racing-line:nth-child(3) {
    top: 50%;
    animation-delay: 1.2s;
}

.racing-line:nth-child(4) {
    top: 70%;
    animation-delay: 1.8s;
}

.racing-line:nth-child(5) {
    top: 90%;
    animation-delay: 2.4s;
}

@keyframes racingLine {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ===== Login Container ===== */
.login-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

/* ===== Left Panel - Branding ===== */
.login-left {
    flex: 1;
    background: linear-gradient(135deg, rgba(21, 21, 30, 0.95) 0%, rgba(30, 30, 46, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-right: 2px solid rgba(225, 6, 0, 0.3);
    padding: 4rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-content {
    text-align: center;
    max-width: 500px;
}

.logo-container {
    margin-bottom: 2rem;
    animation: logoFloat 4s ease-in-out infinite;
}

.login-logo {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(225, 6, 0, 0.5));
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.brand-title {
    font-family: var(--font-secondary);
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 8px;
    margin-bottom: 1rem;
    line-height: 1;
}

.title-gibs {
    color: var(--color-red-primary);
}

.title-fest {
    color: var(--color-white);
}

.title-year {
    display: block;
    font-size: 2.5rem;
    color: var(--color-silver);
    margin-top: 0.5rem;
}

.brand-subtitle {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 6px;
    background: linear-gradient(135deg, #C0C0C0, #FFFFFF, #C0C0C0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

.brand-divider {
    width: 150px;
    height: 2px;
    background: var(--gradient-red);
    margin: 2rem auto;
}

.brand-tagline {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 3px;
    margin-bottom: 3rem;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(225, 6, 0, 0.1);
    border: 2px solid rgba(225, 6, 0, 0.3);
    border-radius: 50px;
    transition: all var(--transition-normal);
}

.feature-item:hover {
    background: rgba(225, 6, 0, 0.2);
    border-color: rgba(225, 6, 0, 0.6);
    transform: translateX(10px);
}

.feature-icon {
    font-size: 2rem;
}

.feature-text {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ===== Right Panel - Login Form ===== */
.login-right {
    flex: 1;
    background: rgba(30, 30, 46, 0.9);
    backdrop-filter: blur(15px);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.login-form-container {
    width: 100%;
    max-width: 480px;
}

/* Back Button */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: all var(--transition-normal);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 2px solid transparent;
}

.btn-back:hover {
    color: var(--color-red-primary);
    border-color: rgba(225, 6, 0, 0.3);
    background: rgba(225, 6, 0, 0.1);
}

.back-icon {
    font-size: 1.2rem;
}

/* Form Header */
.form-header {
    margin-bottom: 2.5rem;
}

.form-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

/* Alert Box */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.5s ease;
}

.alert-error {
    background: rgba(225, 6, 0, 0.2);
    border: 2px solid var(--color-red-primary);
}

.alert-icon {
    font-size: 1.5rem;
}

.alert-text {
    font-size: 1rem;
    font-weight: 600;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.form-help {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    font-style: italic;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1.2rem;
    font-size: 1.3rem;
    pointer-events: none;
    z-index: 2;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    background: rgba(21, 21, 30, 0.8);
    border: 2px solid rgba(225, 6, 0, 0.3);
    border-radius: 10px;
    color: var(--color-white);
    font-size: 1rem;
    font-family: var(--font-primary);
    font-weight: 500;
    transition: all var(--transition-normal);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-red-primary);
    background: rgba(21, 21, 30, 0.95);
    box-shadow: 0 0 20px rgba(225, 6, 0, 0.3);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    padding: 0.5rem;
    transition: transform var(--transition-normal);
}

.toggle-password:hover {
    transform: scale(1.2);
}

/* Login Button */
.form-actions {
    margin-top: 2rem;
}

.btn-login {
    width: 100%;
    padding: 1.2rem 2rem;
    background: var(--gradient-red);
    border: none;
    border-radius: 50px;
    color: var(--color-white);
    font-size: 1.1rem;
    font-weight: 900;
    font-family: var(--font-secondary);
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all var(--transition-normal);
    box-shadow: 0 10px 30px rgba(225, 6, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-login:hover::before {
    width: 400%;
    height: 400%;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(225, 6, 0, 0.6);
}

.btn-login:active {
    transform: translateY(-1px);
}

/* Form Footer */
.form-footer {
    margin-top: 2rem;
    text-align: center;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.footer-link {
    color: var(--color-red-primary);
    text-decoration: none;
    font-weight: 700;
    transition: all var(--transition-normal);
}

.footer-link:hover {
    color: var(--color-red-light);
    text-decoration: underline;
}

.footer-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: rgba(225, 6, 0, 0.3);
}

.divider-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Login Info */
.login-info {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(225, 6, 0, 0.1);
    border: 2px solid rgba(225, 6, 0, 0.3);
    border-radius: 10px;
}

.info-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.info-text:last-child {
    margin-bottom: 0;
}

.info-text.small {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.info-icon {
    margin-right: 0.5rem;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1024px) {
    .login-container {
        flex-direction: column;
    }

    .login-left {
        border-right: none;
        border-bottom: 2px solid rgba(225, 6, 0, 0.3);
        padding: 3rem 2rem;
    }

    .brand-title {
        font-size: 3rem;
    }

    .title-year {
        font-size: 2rem;
    }

    .brand-features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .feature-item {
        flex: 0 1 calc(50% - 1rem);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .login-left {
        padding: 2rem 1.5rem;
    }

    .login-right {
        padding: 2rem 1.5rem;
    }

    .brand-title {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .title-year {
        font-size: 1.5rem;
    }

    .brand-subtitle {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }

    .brand-tagline {
        font-size: 1rem;
    }

    .login-logo {
        width: 150px;
    }

    .feature-item {
        flex: 1 1 100%;
    }

    .form-title {
        font-size: 2rem;
    }

    .form-subtitle {
        font-size: 1rem;
    }

    .btn-login {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {

    .login-left,
    .login-right {
        padding: 1.5rem 1rem;
    }

    .brand-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .title-year {
        font-size: 1.2rem;
    }

    .brand-subtitle {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .form-title {
        font-size: 1.8rem;
    }

    .form-input {
        padding: 0.9rem 0.9rem 0.9rem 3rem;
    }

    .input-icon {
        left: 1rem;
        font-size: 1.1rem;
    }
}