/* Exact Match Login CSS */

.auth-page-wrapper {
    position: relative;
    min-height: calc(100vh - var(--topbar-height, 0px));
    display: flex;
    align-items: stretch;
    justify-content: center;
    background-color: var(--surface-900, #090909);
    padding: 0; /* Remove padding */
}

.auth-split-container {
    display: flex;
    width: 100%;
    max-width: none; /* Full width */
    min-height: calc(100vh - var(--topbar-height, 0px)); /* Full height */
    background-color: var(--surface-800, #0f0f0f); /* Form side background */
    border-radius: 0; /* No rounded corners */
    box-shadow: none; /* No shadow */
    overflow: hidden;
}

.auth-image-side {
    flex: 0 0 45%; /* Image takes 45% */
    background-image: url('https://cdn.asekyazilim.pro/assets/images/neon_man_bg.png'); /* fallback */
    background-size: cover;
    background-position: center;
    position: relative;
}

.auth-form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Center the form content */
    padding: 3rem 4rem;
}

/* Wrapper to limit the form width within the full-screen right side */
.auth-form-inner {
    width: 100%;
    max-width: 450px; /* Keep form elements from getting too wide */
}

.auth-brand h1 {
    font-size: 24px;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    letter-spacing: 0px;
}

.auth-brand p {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 2.5rem;
}

.form-row {
    margin-bottom: 1.25rem;
}

.auth-form-inner .form-label {
    display: block;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.form-input {
    width: 100%;
    background-color: var(--surface-800, #141414);
    border: 1px solid var(--surface-700, #1e1e1e);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text-light);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: var(--text-gray);
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 2px rgba(var(--primary), 0.2);
}

.input-action-icon {
    position: absolute;
    right: 16px;
    color: var(--text-gray);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s;
}

.input-action-icon:hover {
    color: var(--text-secondary);
}

.forgot-password {
    display: block;
    color: var(--brand-red);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: var(--brand-red);
}

.auth-form-inner .btn-submit {
    width: 100%;
    background-color: var(--brand-red);
    color: var(--text-on-accent, #000);
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 0.5rem;
}

.auth-form-inner .btn-submit:hover {
    background-color: var(--brand-red-hover);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: var(--text-gray);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--surface-700, #1e1e1e);
}

.auth-divider:not(:empty)::before {
    margin-right: 15px;
}

.auth-divider:not(:empty)::after {
    margin-left: 15px;
}

.auth-form-inner .social-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: opacity 0.3s;
}

.auth-form-inner .social-btn:hover {
    opacity: 0.9;
}

.auth-form-inner .social-btn.telegram {
    background-color: #29a9ea;
    color: var(--text-light);
}

.auth-form-inner .social-btn.kick {
    background-color: #53f31d;
    color: var(--text-on-accent, #000000);
}

.auth-form-inner .social-btn img {
    width: 20px;
    height: 20px;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 13px;
    color: var(--text-secondary);
}

.auth-links a {
    color: var(--brand-red);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.auth-links a:hover {
    color: var(--brand-red);
}

/* Alert Boxes */
.message-box {
    display: none;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
    align-items: center;
    gap: 10px;
}

.message-box i {
    font-size: 18px;
}

.message-box.error {
    background: rgba(var(--primary), 0.1);
    border: 1px solid rgba(var(--primary), 0.3);
    color: var(--brand-red-pale, #fef3c7);
    display: flex;
}

.message-box.success {
    background: color-mix(in srgb, var(--success-color, #10b981) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--success-color, #10b981) 35%, transparent);
    color: var(--success-color, #10b981);
    display: flex;
}


@media (max-width: 900px) {
    .auth-page-wrapper {
        min-height: auto;
        background-color: transparent;
    }

    .auth-split-container {
        flex-direction: column;
        min-height: auto;
        background-color: transparent;
        overflow: visible;
    }

    .auth-image-side {
        flex: none;
        width: 100%;
        height: min(52vw, 38vh);
        min-height: 180px;
        max-height: 320px;
        background-size: contain;
        background-position: center center;
        background-repeat: no-repeat;
        background-color: transparent !important;
    }

    .auth-form-side {
        padding: 2rem 1.5rem 2.5rem;
        flex: none;
        background-color: var(--surface-800, #0f0f0f);
    }
}
