/**
 * Login Page - Jiu-Jitsu Tech
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #000;
    color: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.hidden {
    display: none !important;
}

.login-container {
    display: grid;
    grid-template-columns: minmax(420px, 0.95fr) minmax(0, 1.05fr);
    min-height: 100vh;
}

/* Left Side - Form */
.login-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #000;
}

.form-content {
    width: 100%;
    max-width: 450px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    max-width: 320px;
    margin-bottom: 2rem;
    text-decoration: none;
}

.brand-logo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.form-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #9ca3af;
    margin-bottom: 2rem;
}

/* Alert */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #dc2626;
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #e5e7eb;
}

.form-group label i {
    color: #dc2626;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1.125rem;
    background: #0a0a0a;
    border: 1px solid #1f2937;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #dc2626;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox input {
    width: auto;
    cursor: pointer;
}

.link {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.link:hover {
    color: #991b1b;
}

.btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.form-footer {
    margin-top: 1.4rem;
    text-align: center;
}

/* Right Side - Visual */
.login-visual {
    position: relative;
    position: relative;
    overflow: hidden;
}

.login-visual-slider,
.login-visual-overlay {
    position: absolute;
    inset: 0;
}

.login-visual-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.8s ease, transform 1.2s ease;
}

.login-visual-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.login-visual-overlay {
    background:
        linear-gradient(180deg, rgba(7, 7, 7, 0.14) 0%, rgba(7, 7, 7, 0.4) 100%),
        linear-gradient(90deg, rgba(8, 8, 8, 0.12) 0%, rgba(8, 8, 8, 0.06) 100%);
}

.login-visual-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-visual-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.login-visual-dot.is-active {
    background: #fff;
    transform: scale(1.08);
}

/* Responsive */
@media (max-width: 991px) {
    .login-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .login-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .login-form {
        padding: 1.5rem;
    }

    .brand-logo {
        max-width: 260px;
    }

    .form-content h2 {
        font-size: 1.75rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

}
