﻿/* ============================================
   1SQFT Login Page - Professional Responsive CSS
   ============================================ */

/* === RESET & BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
}

a {
    text-decoration: none;
}

/* === MAIN CONTAINER === */
.auth-page-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* === LEFT HERO SECTION === */
.auth-hero-section {
    flex: 1;
    background: linear-gradient(180deg, #d72f2f 0%, #ffffff 100%);

    position: relative;
   
    min-height: 100vh;
}

input,
select,
textarea,
.input,
input[type="text"],
input[type="tel"],
input[type="date"],
select.input {
    outline: none;
    outline-width: 0;
    outline-style: none;
    outline-color: transparent;
    border: 2px solid #d1d1d1;
    transition: none;
}

    input:focus,
    select:focus,
    textarea:focus,
    .input:focus,
    input[type="text"]:focus,
    input[type="tel"]:focus,
    input[type="date"]:focus,
    select.input:focus,
    input:focus-visible,
    select:focus-visible,
    .input:focus-visible {
        outline: 2px solid #d72f2f;
        outline-offset: 0;
        border: none;
        box-shadow: none;
        transition: none;
    }


.input-error,
input.input-error,
select.input-error {
    border: 2px solid #d72f2f;
    outline: none;
}

    .input-error:focus,
    input.input-error:focus,
    select.input-error:focus {
        border: 2px solid #d72f2f;
        outline: none;
        box-shadow: none;
    }

select.input.input-error {
    border: 2px solid #d72f2f;
}

    select.input.input-error:focus {
        border: 2px solid #d72f2f;
        outline: none;
        outline-offset: 0;
        box-shadow: none;
    }

/* Hero Assets */
.hero-coins-image {
    position: absolute;
    top: 15vh;
    left: 8vw;
    max-width: 50% !important;
    /*    width: clamp(3.75rem, 20vw, 25rem);*/
    height: auto;
    z-index: 2;
    object-fit: contain;
}

.hero-map-background {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 1;
    object-fit: cover;
}

.hero-character-image {
    position: absolute;
    bottom: 0;
    right: -83px;
    z-index: 3;
    object-fit: cover;
}

.auth-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0rem;
    min-height: 100vh;
    overflow-y: auto;
}
.lockout-disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
}

.lockout-disabled-button {
    opacity: 0.5;
    cursor: not-allowed !important;
}
.auth-form-container {
    width: 100%;
    max-width: 25rem;
    display: flex;
    margin-top:30px;
    flex-direction: column;
    gap: 1rem;
}

/* Logo */
.brand-logo-image {
    width: 3.75rem;
    height: auto;
    margin-bottom: 0.5rem;
}

/* Page Title */
.auth-page-title {
    font-size: 24px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
}

/* === ALERT MESSAGES === */
.alert-message {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 16px;
    margin-bottom: 0.5rem;
}

.alert-info-style {
    background-color: #e3f2fd;
    border: 1px solid #2196f3;
    color: #1976d2;
}

.alert-error-style {
    background-color: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
}

    .alert-error-style strong {
        display: block;
        margin-bottom: 0.5rem;
    }

    .alert-error-style ul {
        margin: 0.5rem 0 0 0;
        padding-left: 1.25rem;
        list-style-type: disc;
    }

    .alert-error-style li {
        margin-bottom: 0.25rem;
    }

/* === FORM ELEMENTS === */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.form-label {
    font-size:16px;
    font-weight: 500;
    color: #333333;
}

.form-input {
    width: 100%;
    height: 3.75rem;
    padding: 1rem;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    background: #f1f1f1;
    border: 1px solid #d1d1d1;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

    .form-input:focus {
        outline: 2px solid #d72f2f;
        background: #ffffff;
    }

    .form-input::placeholder {
        color: #999999;
    }

.validation-error-text {
    color: #c62828;
    font-size:16px;
    margin-top: 0.25rem;
}

/* === PASSWORD TOGGLE === */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-toggle-button {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #7d7d7d;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    z-index: 10;
}

    .password-toggle-button:hover {
        color: #d72f2f;
    }

    .password-toggle-button i {
        font-size: 1.125rem;
        pointer-events: none;
    }

.form-input[type="password"],
.form-input[type="text"].password-input {
    padding-right: 3rem;
}

/* === UTILITY LINKS === */
.text-align-right {
    text-align: right;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.auth-link {
    color: #d72f2f;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

    .auth-link:hover {
        opacity: 0.8;
    }

/* === CHECKBOX COMPONENT === */
.custom-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0;
}

.custom-checkbox-input {
    appearance: none;
    -webkit-appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    background-color: #f1f1f1;
    border: 1px solid #d1d1d1;
    border-radius: 0.375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

    .custom-checkbox-input:checked {
        background-color: #d72f2f;
        border-color: #d72f2f;
    }

        .custom-checkbox-input:checked::after {
            content: "\f00c";
            font-family: "Font Awesome 5 Free";
            font-weight: 600;
            font-size: 0.75rem;
            color: #ffffff;
        }

.custom-checkbox-label {
    color: #7d7d7d;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
}

/* === BUTTONS === */
.button-primary,
.button-secondary {
    width: 100%;
    height: 3.75rem;
    padding: 0 1.5rem;
    font-size:16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: 0.75rem;
}

.button-primary {
    background: #d72f2f;
    color: #ffffff;
    border: 1px solid #d72f2f;
    text-shadow: 0 0 0.25rem rgba(255, 255, 255, 0.3);
}

    .button-primary:hover {
        background: #b82525;
        border-color: #b82525;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(215, 47, 47, 0.3);
    }

    .button-primary:disabled {
        background: #dddddd;
        border-color: #dddddd;
        color: #7d7d7d;
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

.button-secondary {
    background: transparent;
    color: #d72f2f;
    border: 1px solid #d72f2f;
}

    .button-secondary:hover {
        background: rgba(215, 47, 47, 0.1);
    }

.button-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* === CENTERED TEXT === */
.text-center-block {
    text-align: center;
    margin: 0.75rem 0;
}

/* === REGISTER BUTTON === */
.register-cta-button {
    width: 100%;
    height: 3.75rem;
    padding: 0 1.5rem;
    background: transparent;
    border: 1px solid #d72f2f;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

    .register-cta-button:hover {
        background: rgba(215, 47, 47, 0.05);
    }

.register-cta-link {
    color: #d72f2f;
    font-weight: 600;
    font-size:16px;
}

/* === ACCESSIBILITY === */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* === TABLET LANDSCAPE (MAX-WIDTH: 960px) === */
@media screen and (max-width: 960px) {
    .auth-hero-section {
        position: fixed;
        width: 100%;
        height: 100vh;
        z-index: 0;
    }

    .auth-form-section {
        position: relative;
        z-index: 1;
        background: transparent;
    }

    .auth-form-container {
        background: linear-gradient( 135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100% );
        backdrop-filter: blur(1rem);
        padding: 2rem;
        border-radius: 2rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }

    .hero-map-background,
    .hero-character-image {
        position: fixed;
    }
}

/* === TABLET PORTRAIT (MAX-WIDTH: 768px) === */
@media screen and (max-width: 768px) {
    .auth-page-wrapper {
        flex-direction: column;
    }

    .auth-hero-section {
        position: fixed;
        height: 100vh;
    }

    .auth-form-section {
        padding: 1.5rem;
        align-items: flex-start;
        padding-top: 4rem;
    }

    .auth-form-container {
        max-width: 70%;
        backdrop-filter: blur(0.5rem);
        gap: 0.875rem;
    }

    .hero-character-image {
        left: -13.25rem;
        top: 31.5%;
        bottom: auto;
        transform: none;
        height: clamp(20rem, 60vh, 30rem);
    }

    .form-input,
    .button-primary,
    .button-secondary,
    .register-cta-button {
        height: 3.125rem;
    }

    .text-center-block {
        margin: 0.625rem 0;
    }
}

/* === MOBILE LARGE (MAX-WIDTH: 540px) === */
@media screen and (max-width: 540px) {
    .auth-form-section {
        padding: 1rem;
        align-items: center;
    }

    .auth-form-container {
        max-width: 90%;
        backdrop-filter: blur(0.5rem);
    }

    .hero-character-image {
        display: none;
    }

    .hero-map-background {
        display: block;
        position: fixed;
    }
}

/* === MOBILE MEDIUM (MAX-WIDTH: 480px) === */
@media screen and (max-width: 480px) {
    .hero-coins-image {
        width: 4.375rem;
        top: 10vh;
    }

    .auth-form-container {
        backdrop-filter: blur(0.25rem);
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 0.5rem;
    }

    .button-primary,
    .button-secondary,
    .register-cta-button {
        height: 2.8125rem;
    }

    .password-toggle-button {
        right: 0.75rem;
    }

        .password-toggle-button i {
            font-size: 1rem;
        }
}

/* === MOBILE SMALL (MAX-WIDTH: 430px) === */
@media screen and (max-width: 430px) {
    .form-input {
        height: 3.125rem;
        font-size: 0.9375rem;
    }

    .button-primary,
    .button-secondary {
        height: 3.125rem;
        font-size: 0.9375rem;
    }

    .auth-link,
    .text-center-block {
        font-size: 0.9375rem;
    }

    .custom-checkbox-input {
        width: 1.375rem;
        height: 1.375rem;
    }

    .custom-checkbox-label {
        font-size: 0.8125rem;
    }
}

/* === MOBILE EXTRA SMALL (MAX-WIDTH: 380px) === */
@media screen and (max-width: 380px) {
    .hero-coins-image {
        width: 3.75rem;
        top: 8vh;
    }

    .auth-form-container {
        backdrop-filter: blur(0.25rem);
        padding: 1.25rem;
    }

    .form-input {
        height: 3.125rem;
    }

    .button-primary,
    .button-secondary,
    .register-cta-button {
        height: 3.125rem;
        font-size: 0.875rem;
    }

    .auth-link,
    .text-center-block {
        font-size: 0.875rem;
    }

    .custom-checkbox-input {
        width: 1.25rem;
        height: 1.25rem;
    }

    .custom-checkbox-label {
        font-size: 0.75rem;
    }
}

/* === MOBILE TINY (MAX-WIDTH: 320px) === */
@media screen and (max-width: 320px) {
    .auth-form-container {
        max-width: 95%;
        padding: 1rem;
        gap: 0.75rem;
    }

    .form-input {
        height: 3.125rem;
        font-size: 0.9375rem;
        padding: 0.875rem;
    }

    .button-primary,
    .button-secondary,
    .register-cta-button {
        height: 2.5rem;
        font-size: 0.875rem;
        border-radius: 0.875rem;
    }

    .auth-link {
        font-size: 0.875rem;
    }

    .custom-checkbox-input {
        width: 1.125rem;
        height: 1.125rem;
    }

        .custom-checkbox-input:checked::after {
            font-size: 0.625rem;
        }

    .custom-checkbox-label {
        font-size: 0.75rem;
    }
}


/* Handle very tall screens */
@media screen and (min-height: 900px) {
    .auth-form-section {
        padding: 3rem 2rem;
    }
}

/* === PRINT STYLES === */
@media print {
    .auth-hero-section {
        display: none;
    }

    .auth-page-wrapper {
        display: block;
    }

    .auth-form-section {
        min-height: auto;
    }
}
