/* JNXPC Limited - Auth CSS */
/* ======================== */

.section-header {
    margin-bottom: 20px;
}

.section-label {
    font-size: 7.5px;
    padding: 4px 10px;
    margin-bottom: 0;
}

.section-header h2::after {
    height: 6px;
    bottom: 4px;
    width: 10%;
}

.forgot-password-container .section-header h2::after {
    width: 30%;
}

#signup .section-header h2::after {
    width: 40%;
}

.split-container {
    display: flex;
    min-height: 90vh;
    width: 100%;
}

.left-side {
    flex: 1;
    background: linear-gradient(180deg, rgb(0, 0, 0) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.left-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1;
}

.left-side::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at top center,
            transparent 0%,
            rgba(0, 0, 0, 0.25) 0%,
            rgba(0, 0, 0, 0.45) 20%,
            rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
    opacity: 0.75;
    pointer-events: none;
}

.left-content {
    text-align: center;
    z-index: 5;
    position: relative;
    padding: 40px;
    color: white;
}

.left-content h1 {
    font-size: 54px;
    font-weight: 700;
    margin-bottom: 20px;
}

.left-content p {
    font-size: 16px;
    max-width: 75%;
    margin: 0 auto;
    line-height: 1.6;
}

.right-side {
    flex: 1;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.right-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #ddd, transparent);
}

.form-section {
    width: 100%;
    max-width: 450px;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.auth-form {
    width: 100%;
    margin: 0;
    padding: 0;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.input-row input[type=Text] {
    margin-bottom: 0;
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    font-size: 11px;
}

input[type=Text],
input[type=Email],
input[type=Password] {
    width: 100%;
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 12px;
    transition: all 0.3s ease;
}

input[type=Text]:focus,
input[type=Email]:focus,
input[type=Password]:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

input[type=Submit] {
    width: 100%;
    background: linear-gradient(270deg, #d64545, #a71c1c, #d64545, #a71c1c);
    background-size: 300% 100%;
    background-position: 0% 0%;
    border: none;
    padding: 12px;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(167, 28, 28, 0.3);
}

input[type=Submit]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(167, 28, 28, 0.4);
    background-position: 100% 0%;
}

.form-checkbox-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-checkbox input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.form-checkbox label {
    color: #555;
    font-size: 12px;
    cursor: pointer;
    line-height: 1.4;
}

.form-checkbox label a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-checkbox label a:hover {
    text-decoration: underline;
}

.forgot-password-link a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.forgot-password-link a:hover {
    text-decoration: underline;
}

/* Form Links */
.form-links {
    text-align: center;
    margin-top: 16px;
}

.small-label {
    color: #666;
    font-size: 12px;
    margin: 0;
}

.small-label a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.small-label a:hover {
    text-decoration: underline;
}

.turnstile-container {
    display: flex;
    justify-content: center;
}

.forgot-password-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    margin-top: 20px;
}

.forgot-password-container.active {
    max-height: 500px;
}

/* Error States */
.form-control.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

.form-control.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* --- Global Responsive Start --- */
@media screen and (max-width: 1400px) {
    .left-content h1 {
        font-size: 32px;
    }
    
    .left-content p {
        font-size: 16px;
    }

    .input-group {
        margin-bottom: 12px;
    }

    input[type=Text], input[type=Email], input[type=Password] {
        padding: 8px 12px;
    }

    input[type=Submit] {
        padding: 10px;
        font-size: 14px;
    }

    .form-checkbox-row {
        margin: 0 0 8px;
    }

    .form-checkbox input[type="checkbox"] {
        width: 12px;
        height: 12px;
    }

    .form-checkbox label, .forgot-password-link a, .small-label {
        font-size: 11px;
    }

    .forgot-password-container .section-header {
        margin-bottom: 12px;
    }

    .forgot-password-container .section-header h2 {
        font-size: 22px;
        margin-bottom: 0;
    }

    .forgot-password-container .section-header h2::after {
        height: 6px;
        bottom: 2px;
    }
}

@media screen and (max-width: 992px) {
    .split-container {
        flex-direction: column;
        min-height: 0;
    }
    
    .left-side {
        min-height: 10vh;
        padding: 16px;
    }

    .left-content {
        padding: 16px;
    }

    .left-content h1 {
        font-size: 28px;
        margin-bottom: 6px;
    }

    .left-content p {
        font-size: 14px;
        max-width: 80%;
    }
    
    .right-side {
        min-height: auto;
        padding: 16px;
    }
}

@media screen and (max-width: 480px) {
    .section-label {
        font-size: 7px;
    }
    
    .right-side {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        min-height: 70vh;
        padding: 16px;
    }

    .left-content {
        padding: 0;
    }
    
    .left-content h1 {
        font-size: 22px;
    }
    
    .left-content p {
        font-size: 12px;
    }
    
    input[type=Text],
    input[type=Email],
    input[type=Password] {
        padding: 8px 10px;
        font-size: 11px;
        border-radius: 10px;
    }
    
    input[type=Submit] {
        padding: 10px 22px;
        font-size: 13px;
        border-radius: 14px;
    }
}

/* --- Global Responsive End --- */