/* ============================================================================
   EVENLIO CINEMATIC ENGINE - LOGIN SYSTEM
   Tactile-Futurism Design | Obsidian-First Philosophy
   ============================================================================ */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Obsidian-First Palette */
    --surface: #131313;
    --surface-container-lowest: #0e0e0e;
    --surface-container-low: #1c1b1b;
    --surface-container: #201f1f;
    --surface-container-high: #2a2a2a;
    --surface-container-highest: #353534;
    --surface-bright: #3a3939;
    --surface-dim: #131313;
    --surface-variant: #353534;
    
    /* High-Energy Crimson */
    --primary: #ffb4a8;
    --primary-container: #e10100;
    --on-primary: #690100;
    --on-primary-container: #fff2f0;
    --primary-fixed: #ffdad4;
    --primary-fixed-dim: #ffb4a8;
    
    /* Stark White & Neutrals */
    --on-surface: #e5e2e1;
    --on-background: #e5e2e1;
    --secondary: #c8c6c5;
    --on-secondary: #313030;
    --outline: #ab8985;
    --outline-variant: #5b403d;
    
    /* Typography */
    --font-headline: 'Inter', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --font-label: 'Inter', sans-serif;
}

body.tactile-futurism {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: var(--surface);
    color: var(--on-surface);
    font-family: var(--font-body);
}

/* ===== MAIN CONTAINER - FULL SCREEN CINEMATIC ===== */
.account {
    min-height: 100vh;
    height: auto;
    width: 100%;
    display: flex;
    background: var(--surface);
    position: relative;
    overflow: visible;
    padding: 0;
    margin: 0;
}

.account-inner {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    background: var(--surface);
    margin: 0;
    padding: 0;
    overflow: visible;
}

/* ===== LEFT SIDE - CINEMATIC VISUAL ===== */
.account-inner__left {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: var(--surface);
    display: flex;
    align-items: flex-end;
    padding: 3rem;
}

.account-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.account-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Cinematic Gradient Overlays */
.account-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(19, 19, 19, 0.4) 50%,
        rgba(19, 19, 19, 0.95) 100%);
    z-index: 2;
}

.account-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(19, 19, 19, 0.8) 100%);
    z-index: 3;
}

/* Hero Content - Cinematic Messaging */
.account-hero-content {
    position: relative;
    z-index: 10;
    color: var(--on-surface);
    max-width: 32rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.account-hero-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-container);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 0.125rem;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    width: fit-content;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.account-hero-content h2 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--on-surface);
    font-family: var(--font-headline);
}

.account-hero-content h2 .highlight {
    color: var(--primary-container);
}

.account-hero-content p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--secondary);
    font-family: var(--font-body);
}

/* ===== RIGHT SIDE - FORM WITH SCROLLING ===== */
.account-inner__right {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: #ffffff;
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 2rem 0 3rem 0;
}

/* Custom Scrollbar for Right Side */
.account-inner__right::-webkit-scrollbar {
    width: 10px;
}

.account-inner__right::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.account-inner__right::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 5px;
    border: 2px solid #f5f5f5;
}

.account-inner__right::-webkit-scrollbar-thumb:hover {
    background: var(--primary-container);
}

/* Logo at Top Center - Clickable to Home */
.account-form__logo {
    display: block;
    max-width: 140px;
    width: 100%;
    margin: 0 auto 1.25rem auto;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.account-form__logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 1, 0, 0.15);
}

.account-form__logo img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 40px;
    object-fit: contain;
}

/* Form Container */
.account-form-wrapper {
    width: 100%;
    max-width: 26rem;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-shrink: 0;
    min-height: auto;
}

/* Form Header */
.account-form-header {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    text-align: left;
    margin-bottom: 0;
    flex-shrink: 0;
}

.account-form__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    font-family: var(--font-headline);
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.account-form__subtitle {
    font-size: 0.75rem;
    color: #666666;
    font-family: var(--font-body);
    margin: 0;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

/* ===== ROLE SELECTION - EXECUTION ROLE ===== */
.role-selection {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    flex-shrink: 0;
}

.role-selection__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.375rem;
    background: transparent;
    padding: 0;
}

.role-selection__button {
    padding: 0.875rem 1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1.5px solid #e0e0e0;
    cursor: pointer;
    font-family: var(--font-label);
    background: #ffffff;
    color: #666666;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    position: relative;
    white-space: nowrap;
}

.role-selection__button:hover:not(.active) {
    background: #f8f8f8;
    color: #1a1a1a;
    border-color: #d0d0d0;
}

.role-selection__button.active {
    background: var(--primary-container);
    color: white;
    font-weight: 900;
    border-color: var(--primary-container);
}

/* ===== SOCIAL LOGIN ===== */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    flex-shrink: 0;
    margin: 0;
}

.social-login__title {
    font-size: 0.625rem;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-family: var(--font-label);
    font-weight: 600;
    text-align: center;
    margin: 0.5rem 0;
}

.social-login__btn {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #1a1a1a;
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    color: #1a1a1a;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: var(--font-label);
}

.social-login__btn:hover {
    background: #f8f8f8;
    border-color: var(--primary-container);
    box-shadow: 0 2px 6px rgba(225, 1, 0, 0.1);
    transform: translateY(-1px);
    color: #1a1a1a;
    text-decoration: none;
}

.social-login__btn i {
    font-size: 1.125rem;
}

.social-login__btn span {
    white-space: nowrap;
}

/* Old social login button styles (for compatibility) */
.social-login__button {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #1a1a1a;
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.social-login__button:hover {
    background: #f8f8f8;
    border-color: var(--primary-container);
    box-shadow: 0 2px 6px rgba(225, 1, 0, 0.1);
    transform: translateY(-1px);
}

.social-login__icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    display: block;
}

.social-login__text {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #1a1a1a;
    font-family: var(--font-label);
    white-space: nowrap;
}

/* Divider */
.social-login__divider {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    width: 100%;
}

.social-login__divider::before,
.social-login__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #d0d0d0;
}

.social-login__divider-text {
    flex-shrink: 0;
    margin: 0 1rem;
    font-size: 0.625rem;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-family: var(--font-label);
    font-weight: 600;
    white-space: nowrap;
}

/* ===== FORM FIELDS ===== */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    flex-shrink: 0;
    width: 100%;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.form-field__label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #1a1a1a;
    font-weight: 700;
    font-family: var(--font-label);
    margin: 0;
}

.form-field__input-wrapper {
    background: #ffffff;
    border: 1.5px solid #1a1a1a;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.form-field__input-wrapper:focus-within {
    border-color: var(--primary-container);
    box-shadow: 0 0 0 3px rgba(225, 1, 0, 0.1);
}

.form-field__input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0.875rem 1rem;
    color: #1a1a1a;
    font-size: 0.875rem;
    font-family: var(--font-body);
    outline: none;
    font-weight: 500;
}

.form-field__input::placeholder {
    color: #999999;
    font-weight: 400;
}

/* Input with password toggle - add padding for the icon */
.form-field__input-wrapper:has(.password-toggle) .form-field__input {
    padding-right: 3rem;
}

/* Input without password toggle */
.form-field__input-wrapper:not(:has(.password-toggle)) .form-field__input {
    padding-right: 1rem;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666666;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    outline: none;
}

.password-toggle:hover {
    color: var(--primary-container);
    opacity: 0.8;
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

.password-toggle:focus {
    outline: 2px solid var(--primary-container);
    outline-offset: 2px;
}

.password-toggle i {
    font-size: 1.125rem;
    line-height: 1;
    pointer-events: none;
    display: block !important;
}

.password-toggle .fa-eye,
.password-toggle .fa-eye-slash,
.password-toggle .fas {
    display: block !important;
    visibility: visible !important;
}

/* Forgot Password & Remember Me Row */
.form-field__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-password {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-container);
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font-label);
    font-weight: 700;
}

.forgot-password:hover {
    color: #a00f0f;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* Remember Me */
.form-field__checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-field__checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border: 1.5px solid #1a1a1a;
    border-radius: 0.125rem;
    cursor: pointer;
}

.form-field__checkbox input[type="checkbox"]:checked {
    background: var(--primary-container);
    border-color: var(--primary-container);
}

.form-field__checkbox label {
    font-size: 0.8125rem;
    color: #666666;
    cursor: pointer;
    font-family: var(--font-body);
}

/* ===== SUBMIT BUTTON ===== */
.btn--terminal {
    width: 100%;
    background: var(--primary-container);
    color: white;
    padding: 1rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border: none;
    cursor: pointer;
    font-family: var(--font-headline);
    transition: all 0.3s ease;
    margin-top: 0.25rem;
    box-shadow: 0 4px 12px rgba(225, 1, 0, 0.2);
    flex-shrink: 0;
}

.btn--terminal:hover {
    background: #c00100;
    box-shadow: 0 6px 16px rgba(225, 1, 0, 0.3);
    transform: translateY(-1px);
}

.btn--terminal:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(225, 1, 0, 0.2);
}

.btn--terminal:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== FOOTER ACTION ===== */
.account-footer {
    text-align: center;
    padding: 1.5rem 0 0 0;
    display: block !important;
    width: 100%;
    flex-shrink: 0;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 0.5rem;
    background: transparent;
    position: relative;
    z-index: 100;
}

.account-footer__text {
    font-size: 0.9375rem;
    color: #1a1a1a;
    font-family: var(--font-body);
    letter-spacing: 0.01em;
    margin: 0;
    display: block;
    line-height: 1.6;
    font-weight: 500;
}

.account-footer__link {
    color: var(--primary-container);
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 0.375rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
    letter-spacing: 0.05em;
    display: inline-block;
}

.account-footer__link:hover {
    color: #a00f0f;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* ===== COPYRIGHT FOOTER ===== */
.account-copyright {
    text-align: center;
    padding: 2rem 0 1rem 0;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #999999;
    font-family: var(--font-label);
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 0;
    background: transparent;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop (1920px+) */
@media (min-width: 1920px) {
    .account-inner__left {
        padding: 5rem;
    }
    
    .account-hero-content h2 {
        font-size: 3.5rem;
    }
    
    .account-form-wrapper {
        max-width: 30rem;
        padding: 2.5rem 3rem 3.5rem 3rem;
    }
}

/* Laptop (1024px - 1279px) */
@media (max-width: 1279px) {
    .account-inner__left {
        padding: 3rem;
    }
    
    .account-hero-content h2 {
        font-size: 2.5rem;
    }
    
    .account-hero-content p {
        font-size: 1rem;
    }
    
    .account-form-wrapper {
        padding: 2rem 2rem 2.5rem 2rem;
    }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .account-inner {
        grid-template-columns: 1fr;
        min-height: 100vh;
        height: auto;
    }
    
    .account-inner__left {
        display: none;
    }
    
    .account-inner__right {
        height: auto;
        min-height: 100vh;
        padding: 2rem 0 3rem 0;
        overflow-y: visible !important;
    }
    
    .account-form__logo {
        margin-bottom: 1.5rem;
        max-width: 150px;
    }
    
    .account-form-wrapper {
        max-width: 30rem;
        padding: 0 2.5rem;
        gap: 1rem;
    }
    
    .form-field {
        gap: 0.5rem;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .account {
        height: auto;
        min-height: 100vh;
    }
    
    .account-inner {
        min-height: 100vh;
        height: auto;
    }
    
    .account-inner__right {
        height: auto;
        min-height: 100vh;
        padding: 1.5rem 0 2.5rem 0;
        overflow-y: visible !important;
    }
    
    .account-form__logo {
        max-width: 130px;
        margin-bottom: 1.25rem;
    }
    
    .account-form-wrapper {
        padding: 0 1.75rem;
        gap: 0.875rem;
    }
    
    .account-form__title {
        font-size: 1.5rem;
    }
    
    .account-form__subtitle {
        font-size: 0.6875rem;
    }
    
    .role-selection__button {
        font-size: 0.625rem;
        padding: 0.75rem 0.875rem;
    }
    
    .social-login__btn,
    .social-login__button {
        padding: 0.75rem 0.875rem;
        font-size: 0.625rem;
    }
    
    .social-login__text {
        font-size: 0.625rem;
    }
    
    .form-field__input {
        font-size: 0.8125rem;
        padding: 0.75rem 0.875rem;
    }
    
    .form-field__input-wrapper:has(.password-toggle) .form-field__input {
        padding-right: 2.75rem !important;
    }
    
    .form-field__input-wrapper:not(:has(.password-toggle)) .form-field__input {
        padding-right: 0.875rem;
    }
    
    .password-toggle {
        right: 0.5rem;
        width: 2.25rem;
        height: 2.25rem;
    }
    
    .password-toggle i {
        font-size: 1rem;
    }
    
    .btn--terminal {
        padding: 0.875rem;
        font-size: 0.6875rem;
    }
    
    .account-footer {
        padding: 1.25rem 0 0 0;
    }
    
    .account-footer__text,
    .account-footer__link {
        font-size: 0.875rem;
    }
    
    .account-copyright {
        font-size: 0.5625rem;
        padding: 1.5rem 0 1rem 0;
    }
}

/* Extra Small Mobile (< 480px) */
@media (max-width: 479px) {
    .account-inner__right {
        padding: 1.25rem 0 2rem 0;
        overflow-y: visible !important;
    }
    
    .account-form__logo {
        max-width: 120px;
        margin-bottom: 1rem;
    }
    
    .account-form-wrapper {
        padding: 0 1.5rem;
        gap: 0.75rem;
    }
    
    .account-form__title {
        font-size: 1.375rem;
    }
    
    .account-form__subtitle {
        font-size: 0.625rem;
    }
    
    .role-selection__grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .role-selection__button {
        padding: 0.875rem;
        font-size: 0.625rem;
    }
    
    .social-login__btn,
    .social-login__button {
        padding: 0.875rem;
        font-size: 0.5625rem;
    }
    
    .social-login__text {
        font-size: 0.5625rem;
    }
    
    .form-field {
        gap: 0.375rem;
    }
    
    .form-field__label {
        font-size: 0.625rem;
    }
    
    .form-field__input {
        font-size: 0.75rem;
        padding: 0.75rem 0.875rem;
    }
    
    .form-field__input-wrapper:has(.password-toggle) .form-field__input {
        padding-right: 2.5rem !important;
    }
    
    .form-field__input-wrapper:not(:has(.password-toggle)) .form-field__input {
        padding-right: 0.875rem;
    }
    
    .password-toggle {
        right: 0.5rem;
        width: 2rem;
        height: 2rem;
    }
    
    .password-toggle i {
        font-size: 0.9375rem;
    }
    
    .btn--terminal {
        padding: 0.875rem;
        font-size: 0.625rem;
    }
    
    .account-footer {
        padding: 1rem 0 0 0;
    }
    
    .account-footer__text,
    .account-footer__link {
        font-size: 0.8125rem;
    }
    
    .account-copyright {
        font-size: 0.5rem;
        padding: 1.25rem 0 0.75rem 0;
    }
}

/* ===== ACCESSIBILITY ===== */
.form-field__input:focus-visible,
.role-selection__button:focus-visible,
.btn--terminal:focus-visible {
    outline: 2px solid var(--primary-container);
    outline-offset: 2px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
