/* ============================================
   LOGIN PAGE STYLES
   ============================================ */

/* Reusing variables from styles.css where possible */
:root {
    --login-bg-right: #cee8ff;
    --login-text-dark: #0F172A;
    --login-text-gray: #4B5563;
    /* gray-600 */
    --login-input-bg: #f8fafc;
    /* slate-50 equivalent for brand-input inference */
    --login-border-radius: 0.5rem;
    /* rounded-lg */
}

/* ============================================
   LAYOUT
   ============================================ */

/* Main Container (originally section w-full h-full) */
.login-container {
    display: flex;
    width: 100%;
    min-height: 100dvh;
}

/* Left Column: Login Form */
.login-left {
    width: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 2rem;
    /* p-8 */
}

/* Right Column: Feature/Marketing */
.login-right {
    display: none;
    /* hidden by default */
    width: 50%;
    background-color: var(--login-bg-right);

    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    /* p-12 */
    position: relative;
}

/* Desktop Styles (lg breakpoint) */
@media (min-width: 1024px) {
    .login-left {
        width: 50%;
        padding: 2rem 4rem;
        /* lg:p-16 */
    }

    .login-right {
        display: flex;
    }
}

/* ============================================
   LEFT COLUMN CONTENT
   ============================================ */

/* Logo Header */
.login-header-logo {
    width: 100%;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* gap-2 */
}

.logo-text {
    font-size: 1.5rem;
    /* text-2xl */
    font-weight: 700;
    /* font-bold */
    color: var(--login-text-dark);
    font-family: var(--font-display);
}

.beta-badge {
    font-size: 0.75rem;
    /* text-xs */
    font-weight: 500;
    /* font-medium */
    color: #2563EB;
    /* blue-600 */
    background-color: #DBEAFE;
    /* blue-100 */
    border-radius: 0.375rem;
    /* rounded-md */
    padding: 0.125rem 0.5rem;
    /* py-0.5 px-2 */
}

/* Form Container */
.login-form-wrapper {
    width: 100%;
    max-width: 28rem;
    /* max-w-md */
    margin: 0 auto;
    padding-top: 2rem;
    /* py-12 */
}

.page-title {
    font-size: 1.875rem;
    /* text-3xl */
    font-weight: 700;
    color: #111827;
    /* gray-900 */
    margin-bottom: 1rem;
    /* mb-8 */
}

/* Form Elements */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* space-y-6 */
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 500;
    color: #374151;
    /* gray-700 */
    margin-bottom: 0.25rem;
    /* mb-1 */
}

.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    /* px-4 py-3 */
    background-color: var(--login-input-bg);
    border: 0.0625rem solid rgb(219, 224, 235);
    /* border-transparent */
    border-radius: var(--login-border-radius);
    color: #111827;
    /* gray-900 */
    outline: none;
    transition: all 0.2s ease;
}

.input-field::placeholder {
    color: #9CA3AF;
    /* gray-400 */
}

.input-field:focus {
    /* ring-2 ring-brand-blue */
    box-shadow: 0 0 0 1px var(--color-primary);
    border-color: transparent;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-top: 8px;
}


.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.submit-button {
    width: 100%;
    background-color: var(--color-primary);
    /* bg-brand-blue */
    color: white;
    font-weight: 600;
    font-size: var(--font-size-base);
    /* font-semibold */
    padding: 0.75rem 1rem;
    /* py-3 px-4 */
    border-radius: var(--login-border-radius);
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    /* shadow-sm */
    transition: background-color 0.2s ease;
}

.submit-button:hover {
    background-color: var(--color-primary-hover);
    /* hover:bg-blue-700 approximation */
}

/* Auth Links */
.auth-links {
    text-align: center;
    font-size: 0.875rem;
    /* text-sm */
    padding-top: 0.5rem;
    /* pt-2 */
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* space-y-4 */
}

.auth-links p {
    color: #4B5563;
    /* gray-600 */
    margin: 0;
}

.link-register {
    color: var(--color-primary);
    /* text-brand-blue */
    font-weight: 600;
    text-decoration: none;
}

.link-register:hover {
    text-decoration: underline;
}

.link-forgot {
    display: block;
    color: #6B7280;
    /* gray-500 */
    text-decoration: none;
}

.link-forgot:hover {
    color: #374151;
    /* gray-700 */
}

/* Footer Legal */
.footer-legal {
    width: 100%;
    text-align: center;
}

.legal-text {
    font-size: 0.75rem;
    /* text-xs */
    color: #9CA3AF;
    /* gray-400 */
    margin: 0;
}

.legal-link {
    text-decoration: underline;
    color: inherit;
    transition: color 0.2s;
}

.legal-link:hover {
    color: #4B5563;
    /* hover:text-gray-600 */
}

/* ============================================
   RIGHT COLUMN CONTENT
   ============================================ */

.feature-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 32rem;
    /* max-w-lg */
    margin: 0 auto;
    text-align: center;
}

.feature-image-wrapper {
    width: 100%;
    margin-bottom: 2rem;
    /* mb-8 */
    display: flex;
    justify-content: center;
}

.login-mockup-image {
    width: auto;
    height: 50vh;
    /* max-w-sm */
    object-fit: contain;
}

.feature-heading {
    font-size: 2.25rem;
    /* text-4xl */
    font-weight: 700;
    line-height: 1.25;
    /* leading-tight */
    margin-bottom: 1rem;
    /* mb-4 */
    color: var(--login-text-dark);
}

.heading-highlight {
    color: var(--color-primary);
    /* text-brand-blue */
}

.feature-description {
    color: #4B5563;
    /* gray-600 */
    font-size: 1rem;
    /* text-base */
    line-height: 1.625;
    /* leading-relaxed */
    padding: 0 1rem;
    /* px-4 */
    margin-top: 1.5rem;
    /* mt-6 */
}

/* Infrastructure Badge */
.infrastructure-badge {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* mt-8 */
}

.aws-logo {
    height: 2rem;
    /* h-5 */
    width: auto;
    margin-left: 0.5rem;
    /* ml-2 */
    mix-blend-mode: multiply;
}


/* REGISTER STYLES */

/* Row layout */
.form-row {
    display: flex;
    gap: 16px;
}

.form-row .input-group {
    flex: 1;
}

.password-rules {
    margin-top: 0.7rem;
    display: none;
    font-size: 13px;
}

.password-rules p {
    margin: 4px 0;
    color: #9ca3af;
    /* neutro */
    display: flex;
    align-items: center;
    gap: 6px;
}

.password-rules .icon {
    width: 14px;
    text-align: center;
    font-weight: bold;
}

.password-rules .valid {
    color: #16a34a;
}

.password-rules .valid .icon {
    content: "✔";
}

.password-rules .invalid {
    color: #dc2626;
}

.password-rules .invalid .icon {
    content: "✖";
}

.error-text {
    display: none;
    margin-top: 6px;
    font-size: 12px;
    color: #dc2626;
    /* rojo */
    align-items: center;
    gap: 6px;
}

.error-icon {
    font-weight: bold;
    font-size: 12px;
}

/* Page background */
.auth-page {
    min-height: 100vh;
    background: var(--login-bg-right);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
}

/* Logo */
.auth-logo img {
    height: 3.5rem;
    margin-bottom: 32px;
}

/* Card */
.auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 12px;
    padding: 3rem 3.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* Title */
.auth-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111827;
}

/* Description */
.auth-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Form */
.auth-form .input-group {
    margin-bottom: 20px;
}

/* Button full width */
.auth-form .submit-button {
    width: 100%;
}

@media (max-width:1024px) {
    .auth-page {
        justify-content: center;
        padding: 0 2rem;
    }

}