/* ===========================================
   AUTH SPLIT SCREEN DESIGN
   =========================================== */

body {
    background: #000000;
    margin: 0;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #000000;
    padding: 24px;
    direction: ltr;
    text-align: left;
    unicode-bidi: isolate;
}

.auth-page * {
    direction: ltr;
}

/* Top bar */
.auth-topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    padding: 8px 16px 24px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.auth-topbar span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.auth-topbar a.btn-outline {
    padding: 8px 20px;
    border: 1px solid rgba(16, 185, 129, 0.5);
    border-radius: 8px;
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.auth-topbar a.btn-outline:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.auth-split {
    display: flex;
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    background: #0a0a0a;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #1a1a1a;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Left Side - Branding */
.auth-split__branding {
    flex: 1.1;
    /* Replace the url() below with the path to your own background artwork */
    background-image: linear-gradient(180deg, rgba(10,10,15,0.55) 0%, rgba(10,10,15,0.35) 45%, rgba(5,5,10,0.85) 100%),
                       url('/assets/images/auth-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 56px;
    display: flex;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.auth-branding {
    max-width: 520px;
    width: 100%;
    color: white;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Logo mark */
.auth-branding__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 48px;
    text-decoration: none;
}

.auth-branding__logo .logo-mark {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #0a0a0a;
    font-size: 18px;
    flex-shrink: 0;
}

.auth-branding__logo .logo-text {
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
}

.auth-branding__title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: white;
}

.auth-branding__title .highlight {
    color: #10b981;
}

.auth-branding__subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 40px;
    max-width: 440px;
}

.auth-branding__features {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.feature-item__icon {
    font-size: 16px;
    color: #10b981;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 50%;
}

.feature-item h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 3px;
    color: white;
}

.feature-item p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.4;
}

.auth-branding__footer {
    margin-top: auto;
    padding-top: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Right Side - Form */
.auth-split__form {
    flex: 1;
    background: #101014;
    padding: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
}

.auth-form__header {
    margin-bottom: 32px;
    text-align: center;
}

.auth-form__header h2 {
    font-size: 30px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.auth-form__header p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
}

.auth-form__header p .brand-name {
    color: #10b981;
    font-weight: 600;
}

/* Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Input with icon */
.form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input-wrapper .input-icon {
    position: absolute;
    left: 14px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 15px;
    pointer-events: none;
}

.form-input-wrapper .form-input {
    padding-left: 42px;
}

.form-input-wrapper .password-toggle {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 15px;
    padding: 4px;
    display: flex;
    align-items: center;
}

.form-input-wrapper .password-toggle:hover {
    color: rgba(255, 255, 255, 0.7);
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    background: #17171b;
    border: 1px solid #262629;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #10b981;
    background: #1c1c20;
}

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

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.form-link {
    color: #10b981;
    text-decoration: none;
    font-size: 14px;
}

.form-link:hover {
    text-decoration: underline;
}

/* Checkbox */
.form-group--checkbox {
    flex-direction: row;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #10b981;
    border-radius: 4px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981, #0d9668);
    color: white;
}

.btn-primary:hover {
    background: #059669;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 15px 24px;
    font-size: 16px;
    justify-content: space-between;
}

.btn-lg .btn-arrow {
    font-size: 15px;
}

.btn-social {
    background: #17171b;
    color: white;
    border: 1px solid #262629;
    flex: 1;
    gap: 8px;
}

.btn-social:hover {
    background: #1e1e22;
    border-color: #3a3a3a;
}

.btn-google i { color: #ea4335; }
.btn-discord i { color: #5865F2; }
.btn-microsoft i { color: #00a4ef; }

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #2a2a2a;
}

.auth-divider span {
    padding: 0 16px;
}

/* Social Buttons */
.auth-social {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

/* Footer */
.auth-footer {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

.auth-legal {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
}

.auth-legal i {
    margin-top: 2px;
}

.auth-legal a {
    color: rgba(255, 255, 255, 0.6);
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-page {
        padding: 0;
    }

    .auth-topbar {
        padding: 16px 20px;
    }

    .auth-split {
        flex-direction: column;
        border-radius: 0;
        border: none;
    }

    .auth-split__branding {
        padding: 40px;
        min-height: 300px;
    }

    .auth-branding__title {
        font-size: 32px;
    }

    .auth-split__form {
        padding: 40px 20px;
    }
}

@media (max-width: 640px) {
    .auth-split__branding {
        display: none;
    }

    .auth-split__form {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .auth-social {
        grid-template-columns: 1fr;
    }
}