:root {
    --primary: #504B38;
    --primary-light: #968F74;
    --accent: #e63946;
    --dark: #1a1a1a;
    --light: #f8f9fa;
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark);
    color: #fff;
}

.row {
    height: 100vh;
    margin: 0;
}

.col-40 {
    flex: 0 0 40%;
    max-width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--dark);
    order: 2;
}

.form-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.col-60 {
    flex: 0 0 60%;
    max-width: 60%;
    padding: 0;
    order: 1;
}

.col-60 img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

/* Form Styling */
.form-label {
    color: #fff;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(230, 57, 70, 0.25);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Button Styling */
.btn {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.btn:hover {
    background: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
    color: white;
}

.btn:disabled {
    background: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-modal {
    background: none;
    border: none;
    text-decoration: underline;
    padding: 0;
    color: var(--accent);
    transition: color 0.3s ease;
}

.btn-modal:hover {
    color: #d32f2f;
}

/* Logo Styling */
.text-center img {
    border: 3px solid var(--accent);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.3);
    transition: transform 0.3s ease;
}

.text-center img:hover {
    transform: scale(1.05);
}

/* Heading Styling */
h3 {
    color: #fff;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Link Styling */
.text-decoration-none {
    color: var(--accent);
    font-weight: 500;
    transition: color 0.3s ease;
}

.text-decoration-none:hover {
    color: #d32f2f;
}

/* Checkbox Styling */
.form-check-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.form-check-label {
    color: #fff;
}

/* Invalid Feedback */
.invalid-feedback {
    color: #ff6b6b;
    font-size: 0.875rem;
}

.form-text {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Loading Overlay */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
    color: #fff;
    font-size: 1.2rem;
}

#loadingOverlay.active {
    display: flex;
}

#loadingOverlay .loader {
    border: 0.4rem solid rgba(255, 255, 255, 0.2);
    border-top: 0.4rem solid var(--accent);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* OTP Container */
.otp-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.otp-container h6 {
    color: #fff;
    font-weight: 600;
}

.otp-container p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 1199px) {
    .col-40 {
        flex: 0 0 100%;
        max-width: 100%;
        order: 2;
    }

    .col-60 {
        flex: 0 0 100%;
        max-width: 100%;
        height: 40vh;
        order: 1;
    }

    .col-60 img {
        height: 40vh;
    }

    .form-container {
        margin: auto;
        padding: 1rem;
    }
}

/* OTP hidden by default */
#otpContainer {
    display: none;
}