/* ========================================
   GÜNEYDOĞU DENTAL AUTH PAGE - PROFESSIONAL DESIGN
   Modern, Clean & Consistent with Brand Identity
======================================== */

/* Brand Colors - Güneydoğu Dental Design System */

::selection {
  background: var(--accent);
  color: white;
}

:root {
    /* Primary Brand Colors */
    --primary: #005197;
    --primary-dark: #003d73;
    --primary-light: #1a6bb3;
    --accent: #ff8108;
    --accent-dark: #e67207;
    --accent-light: #ff9933;

    /* Text Colors */
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --text-light: #9ca3af;

    /* Surface Colors */
    --white: #ffffff;
    --background: #f8fafc;
    --surface: #ffffff;
    --border: #e5e7eb;
    --border-light: #f3f4f6;

    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.15);

    /* Border Radius */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    background: linear-gradient(135deg, #e2e8f0 0%, #f8fafc 50%, #e2e8f0 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 85px 0 0 0;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

input,
button {
    outline: 0 !important;
}


/* Güneydoğu Dental – Modern Dental Marketplace Tasarımı
   Renkler: Primary #005197, Accent #ff8108
   Font: Poppins - Modern ve okunabilir
*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary: #005197;
    --accent: #ff8108;
    --bg: #ffffff;
    --text: #101418;
    --muted: #6b7280;
    --border: #e6e8ec;
    --radius-6: 6px;
    --radius-10: 10px;
    --radius-16: 16px;
    --radius-20: 20px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .08);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, .12);
    --fs-1: 2.25rem;
    --fs-2: 1.75rem;
    --fs-3: 1.5rem;
    --fs-4: 1.25rem;
    --fs-5: 1rem;
    --fs-6: .875rem;
    --container: 1400px;
}

*,
*::before,
*::after {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

img {
    max-width: 100%;
    display: block
}

a {
    text-decoration: none;
    color: inherit
}

button {
    font: inherit;
    cursor: pointer
}

input {
    font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
}


/* ========================================
   HEADER - PREMIUM PROFESSIONAL DESIGN
======================================== */
.auth-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 100%;
    margin-top: 45px;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 60px;
    width: 200px;
    overflow: visible;
    z-index: 2;
}

.logo::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: linear-gradient(135deg, 
        rgba(255, 129, 8, 0.1) 0%,
        rgba(0, 81, 151, 0.1) 50%,
        rgba(255, 129, 8, 0.08) 100%
    );
    border-radius: var(--radius-2xl);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}


.logo img {
    height: 100%;
    width: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.12));
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    scale: 2.5;
}

.logo:hover img {
    transform: scale(1.08);
    filter: 
        drop-shadow(0 4px 12px rgba(255, 129, 8, 0.15))
        drop-shadow(0 8px 25px rgba(0, 81, 151, 0.1));
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 3;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 129, 8, 0.8);
    position: relative;
    overflow: hidden;
    color: var(--accent);
    background: rgba(255, 127, 8, 0.09);
    border-color: #ff8108;
    white-space: nowrap;
}

.back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 81, 151, 0.1), transparent);
    transition: left 0.5s ease;
}

.back-btn:hover::before {
    left: 100%;
}

.back-btn:hover {
    color: white;
    background: #ff8108;
    border-color: #ff8108;
    transform: translateX(-3px);
    box-shadow: 0 8px 25px rgba(0, 81, 151, 0.15);
}

.back-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.back-btn:hover i {
    transform: translateX(-2px);
}

/* Header Help Button */
.header-help {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 3;
}

.help-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(0, 81, 151, 0.3);
    position: relative;
    overflow: hidden;
    color: var(--primary);
    background: rgba(0, 81, 151, 0.08);
    white-space: nowrap;
}

.help-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 81, 151, 0.1), transparent);
    transition: left 0.5s ease;
}

.help-btn:hover::before {
    left: 100%;
}

.help-btn:hover {
    color: white;
    background: var(--primary);
    border-color: var(--primary);
    transform: translateX(3px);
    box-shadow: 0 8px 25px rgba(0, 81, 151, 0.2);
}

.help-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.help-btn:hover i {
    transform: translateX(2px) rotate(15deg);
}

/* ========================================
   MAIN CONTAINER - ENHANCED DESIGN
======================================== */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.container {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: 
        var(--shadow-xl),
        0 0 0 4px rgba(0, 81, 151, 0.12),
        0 0 25px rgba(0, 81, 151, 0.08);
    position: relative;
    overflow: hidden;
    height: 750px;
    border: 2px solid var(--primary);
    display: flex;
    width: 100%;
    max-width: 1100px;
    margin: 50px 0 100px;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Container Border - Active States */
.container.right-panel-active {
    border-color: var(--accent);
    box-shadow: 
        var(--shadow-xl),
        0 0 0 4px rgba(255, 129, 8, 0.15),
        0 0 30px rgba(255, 129, 8, 0.1);
}

/* Container Background Pattern */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 129, 8, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 81, 151, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* ========================================
   FORM CONTAINERS - REFINED STRUCTURE
======================================== */
.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: var(--white);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

.container.right-panel-active .sign-in-container {
    transform: translateX(100%);
}

.sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
}

@keyframes slideInForm {

    0%,
    49.99% {
        opacity: 0;
        z-index: 1;
    }

    50%,
    100% {
        opacity: 1;
        z-index: 5;
    }
}

/* ========================================
   FORM STYLING - PREMIUM DESIGN
======================================== */
form {
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px 40px;
    text-align: center;
    position: relative;
    z-index: 2;
    overflow-y: auto;
    max-height: 100%;
    width: 100%;
}

.form-header {
    margin-bottom: 25px;
    flex-shrink: 0;
}

.form-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 32px;
    box-shadow:
        0 15px 35px rgba(0, 81, 151, 0.25),
        0 5px 15px rgba(0, 81, 151, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.form-icon::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: conic-gradient(from 0deg, var(--primary), var(--accent), var(--primary-dark), var(--primary));
    border-radius: 50%;
    z-index: -1;
    opacity: 0.4;
    filter: blur(12px);
    animation: rotate 8s linear infinite;
}

.form-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.form-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 20px 45px rgba(0, 81, 151, 0.35),
        0 8px 25px rgba(0, 81, 151, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.form-icon:hover::after {
    opacity: 1;
}

.form-icon i {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.form-icon:hover i {
    transform: scale(1.1) rotate(5deg);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.sign-up-container .form-icon {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 50%, var(--accent) 100%);
    box-shadow:
        0 15px 35px rgba(255, 129, 8, 0.25),
        0 5px 15px rgba(255, 129, 8, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.sign-up-container .form-icon::before {
    background: conic-gradient(from 0deg, var(--accent), var(--primary), var(--accent-dark), var(--accent));
}

.sign-up-container .form-icon:hover {
    box-shadow:
        0 20px 45px rgba(255, 129, 8, 0.35),
        0 8px 25px rgba(255, 129, 8, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

h1 {
    font-weight: 700;
    margin: 0 0 10px 0;
    font-size: 28px;
    color: var(--text);
    letter-spacing: -0.5px;
}

.form-header p {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.5;
}

/* ========================================
   SOCIAL LOGIN - ENHANCED DESIGN
======================================== */

/* ========================================
   INPUT STYLING - MODERN DESIGN
======================================== */
.input-group {
    margin-bottom: 12px;
    width: 100%;
    flex-shrink: 0;
}

.sign-in-container .input-group {

    width: 50%;
}

/* Form Row Layout for Two Columns */
.form-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    width: 100%;
}

.form-row .input-group {
    margin-bottom: 0;
    flex: 1;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    background: rgba(248, 250, 252, 0.8);
    border: 2px solid rgb(146 156 178 / 80%);
    border-radius: var(--radius-lg);
    padding: 14px 18px 14px 45px;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    font-family: inherit;
}

/* Selects styled like inputs */
.input-wrapper select {
    background: rgba(248, 250, 252, 0.8);
    border: 2px solid rgb(146 156 178 / 80%);
    border-radius: var(--radius-lg);
    padding: 14px 45px 14px 45px; /* left for icon, right for arrow */
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239399ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    cursor: pointer;
}

/* Hide default arrow in IE */
.input-wrapper select::-ms-expand {
    display: none;
}

.input-wrapper input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

/* Show placeholder-like style until a valid option chosen */
.input-wrapper select:invalid {
    color: var(--text-light);
}

.input-wrapper input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 81, 151, 0.08);
    transform: translateY(-1px);
}

.input-wrapper select:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 81, 151, 0.08);
    transform: translateY(-1px);
}

.sign-up-container .input-wrapper input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 129, 8, 0.08);
}

.sign-up-container .input-wrapper select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 129, 8, 0.08);
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    transform-origin: center;
}

.input-wrapper input:focus~.input-icon {
    color: var(--primary);
    transform: scale(1.1) translateY(-1px);
    text-shadow: 0 2px 8px rgba(0, 81, 151, 0.3);
}

.input-wrapper select:focus~.input-icon {
    color: var(--primary);
    transform: scale(1.1) translateY(-1px);
    text-shadow: 0 2px 8px rgba(0, 81, 151, 0.3);
}

.sign-up-container .input-wrapper input:focus~.input-icon {
    color: var(--accent);
    text-shadow: 0 2px 8px rgba(255, 129, 8, 0.3);
}

.sign-up-container .input-wrapper select:focus~.input-icon {
    color: var(--accent);
    text-shadow: 0 2px 8px rgba(255, 129, 8, 0.3);
}

.input-wrapper input:not(:placeholder-shown)~.input-icon {
    color: var(--primary);
    transform: scale(0.95);
}

.sign-up-container .input-wrapper input:not(:placeholder-shown)~.input-icon {
    color: var(--accent);
}

/* When select has a valid value, color the icon */
.input-wrapper select:valid~.input-icon {
    color: var(--primary);
    transform: scale(0.95);
}

.sign-up-container .input-wrapper select:valid~.input-icon {
    color: var(--accent);
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    z-index: 2;
}

.password-toggle:hover {
    color: var(--primary);
    background: rgba(0, 81, 151, 0.08);
}

/* ========================================
   PASSWORD STRENGTH METER
======================================== */
.password-strength {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 0 6px;
}

.strength-meter {
    flex: 1;
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: var(--danger);
    border-radius: 2px;
    transition: all 0.4s ease;
}

.strength-fill.weak {
    width: 25%;
    background: var(--danger);
}

.strength-fill.fair {
    width: 50%;
    background: var(--warning);
}

.strength-fill.good {
    width: 75%;
    background: var(--info);
}

.strength-fill.strong {
    width: 100%;
    background: var(--success);
}

.strength-text {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    min-width: 70px;
    text-align: right;
}

/* ========================================
   FORM OPTIONS - CHECKBOXES & LINKS
======================================== */
/* Form Actions Container */
.form-actions {
    margin-top: 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.form-options {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    width: auto;
    font-size: 12px;
    gap: 25px;
    flex-shrink: 0;
    flex: 1;
    margin: 35px 0;
}

.sign-up-container .form-options {
    margin: 15px 0;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    flex: 1;
}

.custom-checkbox input {
    display: none;
}

/* Modern Toggle Switch */
.checkmark {
    width: 44px;
    height: 24px;
    border: 2px solid rgb(146 156 178 / 80%);
    border-radius: 20px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
    margin-top: 1px;
    background: var(--bg-light);
}

.checkmark::after {
    content: '';
    position: absolute;
    left: 2px;
    top: 50%;
    translate: 0 -50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background:rgb(146 156 178 / 80%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-checkbox input:checked~.checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.sign-up-container .custom-checkbox input:checked~.checkmark {
    background: var(--accent);
    border-color: var(--accent);
}

.custom-checkbox input:checked~.checkmark::after {
    left: 22px;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.checkbox-text {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
}

.terms-link,
.privacy-link,
.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.terms-link:hover,
.privacy-link:hover,
.forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.forgot-link {
    white-space: nowrap;
    font-size: 12px;
}

/* ========================================
   BUTTONS - PREMIUM DESIGN
======================================== */
.auth-btn {
    border-radius: var(--radius-lg);
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    padding: 14px 40px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 180px;
    box-shadow: 0 6px 20px rgba(0, 81, 151, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    flex-shrink: 0;
    margin: 0;
    white-space: nowrap;
}

.register-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: 0 6px 20px rgba(255, 129, 8, 0.25);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 81, 151, 0.35);
}

.register-btn:hover {
    box-shadow: 0 8px 25px rgba(255, 129, 8, 0.35);
}

.auth-btn:active {
    transform: translateY(-1px);
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.auth-btn:hover::before {
    left: 100%;
}

.btn-text {
    letter-spacing: 0.5px;
}

.btn-icon {
    font-size: 14px;
}

/* ========================================
   OVERLAY CONTAINER - REFINED PANELS
======================================== */
.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 100;
}

.container.right-panel-active .overlay-container {
    transform: translateX(-100%);

}

/* ========================================
   MOBILE SWITCH CONTAINER (767px and below)
======================================== */
.mobile-switch-container {
    display: none;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.mobile-divider {
    position: relative;
    margin-bottom: 15px;
}

.mobile-divider span {
    background: var(--white);
    padding: 0 15px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.mobile-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
    z-index: 1;
}

.mobile-switch-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 81, 151, 0.2);
}

.mobile-switch-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.mobile-switch-btn:hover::before {
    left: 100%;
}

.mobile-switch-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 81, 151, 0.3);
}

.mobile-switch-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 81, 151, 0.2);
}

.mobile-switch-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.mobile-switch-btn:hover i {
    transform: scale(1.1);
}

.mobile-switch-text {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Sign Up Container Mobile Switch Button */
.sign-up-container .mobile-switch-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    box-shadow: 0 4px 15px rgba(255, 129, 8, 0.2);
}

.sign-up-container .mobile-switch-btn:hover {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
    box-shadow: 0 6px 20px rgba(255, 129, 8, 0.3);
}

.sign-up-container .mobile-switch-btn:active {
    box-shadow: 0 2px 10px rgba(255, 129, 8, 0.2);
}

/* Page Switcher - Hidden by default, shown only on mobile */
.page-switcher {
    display: none;
}

.overlay {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    background-size: cover;
    color: var(--white);
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.container.right-panel-active .overlay {
    transform: translateX(50%);
}

.container.right-panel-active .overlay::before {
    opacity: 1;
}

.overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 45px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.overlay-left {
    transform: translateX(-20%);
}

.container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.overlay-right {
    right: 0;
    transform: translateX(0);
}

.container.right-panel-active .overlay-right {
    transform: translateX(20%);
}

/* ========================================
   OVERLAY CONTENT - BRAND EXPERIENCE
======================================== */
.overlay-content {
    text-align: center;
}

.brand-logo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 35px;
    font-size: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.brand-logo::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: conic-gradient(from 45deg,
            rgba(255, 255, 255, 0.3),
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.2),
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.3));
    border-radius: 50%;
    z-index: -1;
    filter: blur(8px);
    animation: brandRotate 12s linear infinite;
}

.brand-logo::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 30%;
    height: 30%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.brand-logo:hover {
    transform: translateY(-5px) scale(1.08);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.brand-logo:hover::after {
    top: 15%;
    left: 15%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
}

.brand-logo i {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.brand-logo:hover i {
    transform: scale(1.15) rotate(-5deg);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@keyframes brandRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.overlay-panel h1 {
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 20px;
    color: white;
    letter-spacing: -0.5px;
}

.overlay-panel p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.3px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.trust-features {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

.feature i {
    width: 20px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.ghost {
    background: transparent;
    border: 2px solid var(--white);
    border-radius: var(--radius-lg);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    padding: 14px 48px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.ghost::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.5s ease;
}

.ghost:hover::before {
    left: 100%;
}

.ghost:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* ========================================
   FOOTER - PREMIUM SECURITY SHOWCASE
======================================== */
.auth-footer {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 81, 151, 0.08);
    padding: 32px 0 28px;
    margin-top: auto;
    flex-shrink: 0;
    position: relative;
}

.auth-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.9;
}

.security-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 32px;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(0, 81, 151, 0.03), rgba(0, 81, 151, 0.01));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 81, 151, 0.08);
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.security-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 81, 151, 0.1), transparent);
    transition: left 0.6s ease;
}

.security-item:hover::before {
    left: 100%;
}

.security-item:hover {
    background: linear-gradient(135deg, rgba(0, 81, 151, 0.08), rgba(0, 81, 151, 0.03));
    border-color: rgba(0, 81, 151, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 81, 151, 0.15);
    color: var(--primary);
}

.security-item i {
    color: var(--accent);
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.security-item:hover i {
    color: var(--primary);
    transform: scale(1.1);
}

/* Security Item Variants */
.security-item:nth-child(1) {
    border-color: rgba(16, 185, 129, 0.2);
}

.security-item:nth-child(1):hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.security-item:nth-child(2) {
    border-color: rgba(59, 130, 246, 0.2);
}

.security-item:nth-child(2):hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.security-item:nth-child(3) {
    border-color: rgba(245, 158, 11, 0.2);
}

.security-item:nth-child(3):hover {
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
}

.security-item:nth-child(4) {
    border-color: rgba(139, 69, 19, 0.2);
}

.security-item:nth-child(4):hover {
    border-color: rgba(139, 69, 19, 0.3);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.2);
}

/* ========================================
   ERROR STATES & VALIDATION
======================================== */
.input-wrapper input.error {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.03);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.input-wrapper select.error {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.03);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.error-message {
    color: var(--danger);
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
    margin-left: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.error-message::before {
    content: '';
    display: inline-block;
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    background: no-repeat center/13px 13px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
}

/* ========================================
   NOTIFICATION SYSTEM
======================================== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    color: white;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    transform: translateX(450px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: linear-gradient(135deg, var(--success), #059669);
}

.notification-error {
    background: linear-gradient(135deg, var(--danger), #dc2626);
}

.notification-warning {
    background: linear-gradient(135deg, var(--warning), #d97706);
}

.notification-info {
    background: linear-gradient(135deg, var(--info), #2563eb);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    opacity: 0.8;
    transition: opacity 0.3s ease;
    margin-left: auto;
}

.notification-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   LOADING STATES
======================================== */
.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.auth-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   RESPONSIVE DESIGN - HEADER & FOOTER
======================================== */

/* ========================================
   RESPONSIVE DESIGN - PROFESSIONAL MOBILE-FIRST APPROACH
   Optimized for all screen sizes with pixel-perfect precision
======================================== */

/* ===== ULTRA WIDE SCREENS (1920px+) ===== */
@media (min-width: 1920px) {
    .header-content {
        max-width: 1600px;
        padding: 0 60px;
    }
    
    .container {
        max-width: 1200px;
        height: 800px;
    }
    
    form {
        padding: 50px 50px;
    }
    
    .form-icon {
        width: 90px;
        height: 90px;
        font-size: 36px;
        margin-bottom: 30px;
    }
    
    h1 {
        font-size: 32px;
    }
    
    .form-header p {
        font-size: 17px;
    }
}


/* ===== DESKTOP (1200px - 1439px) ===== */
@media (min-width: 1151px) and (max-width: 1439px) {
    .header-content {
        max-width: 1100px;
    }
    
    
    form {
        padding: 35px 35px;
    }
    
    .logo {
        width: 180px;
        height: 55px;
    }
    
    .logo img {
        scale: 2.4;
    }
    
    .back-btn,
    .help-btn {
        padding: 11px 22px;
        font-size: 15px;
    }
}

/* ===== LAPTOP (992px - 1199px) ===== */
@media (min-width: 992px) and (max-width: 1150px) {
    .header-content {
        max-width: 900px;
        margin-top: 45px;
    }
    
    .container {
        max-width: 900px;
        height: 750px;
        margin: 40px 0 80px;
    }
    
    form {
        padding: 30px 30px;
    }
    
    .form-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    h1 {
        font-size: 26px;
    }
    
    .form-header p {
        font-size: 14px;
    }
    
    .logo {
        width: 160px;
        height: 50px;
    }
    
    .logo img {
        scale: 2.3;
    }
    
    .back-btn,
    .help-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .input-wrapper input {
        padding: 14px 16px 14px 45px;
        font-size: 14px;
    }
    
    .auth-btn {
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* ===== TABLET LANDSCAPE (768px - 991px) ===== */
@media (min-width: 768px) and (max-width: 991px) {
    body {
        padding-top: 75px;
    }
    
    .header-content {
        max-width: 750px;
        margin-top: 35px;
    }
    
    .container {
        max-width: 750px;
        height: 750px;
        margin: 30px 0 60px;
    }
    
    form {
        padding: 25px 25px;
    }
    
    .form-icon {
        width: 65px;
        height: 65px;
        font-size: 26px;
        margin-bottom: 18px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .form-header p {
        font-size: 13px;
    }
    
    .logo {
        width: 140px;
        height: 45px;
    }
    
    .logo img {
        scale: 2.5;
    }
    
    .back-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    
    .help-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    

    .sign-up-container .form-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .input-wrapper input {
        padding: 13px 15px 13px 42px;
        font-size: 14px;
    }
    
    .input-icon {
        left: 14px;
        font-size: 16px;
    }
    
    .password-toggle {
        right: 14px;
    }
    
    .social {
        height: 40px;
        width: 40px;
    }
    
    .auth-btn {
        padding: 13px 26px;
        font-size: 14px;
    }
    
    /* Footer optimizations */
    .auth-footer {
        padding: 22px 0 18px;
    }
    
    .security-indicators {
        gap: 14px;
        padding: 0 24px;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .security-item {
        padding: 12px 16px;
        font-size: 12px;
    }
    
    .security-item i {
        font-size: 16px;
    }
}

/* ===== TABLET PORTRAIT & MOBILE (576px - 767px) ===== */
/* Advanced Page System - Perfect Mobile Experience */
@media (min-width: 576px) and (max-width: 767px) {
    body {
        padding-top: 60px;
        background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
    }
    
    .header-content {
        margin-top: 40px;
        max-width: 500px;
    }

    main {
        margin-top: 40px;
    }
    
    .container {
        width: 95%;
        max-width: 500px;
        height: auto;
        min-height: 600px;
        margin: 20px 0 40px;
        flex-direction: column;
        position: relative;
        border-radius: var(--radius-2xl);
        background: var(--white);
        box-shadow: 
            0 20px 40px rgba(0, 81, 151, 0.08),
            0 8px 16px rgba(0, 0, 0, 0.04);
    }
    
    /* Page System - Hide/Show Logic */
    .form-container {
        position: static;
        width: 100%;
        height: auto;
        opacity: 1;
        transform: none;
        display: none;
        animation: none;
    }
    
    /* Default: Show Sign In */
    .sign-in-container {
        display: flex;
        order: 1;
    }
    
    .sign-in-container .input-group {
        width: 100%;
    }
    .sign-up-container {
        display: none;
        order: 1;
    }

    /* Show mobile switch container */
    .mobile-switch-container {
        display: block;
        margin-top: 0;
        padding-top: 0;
    }

    .mobile-switch-btn {
        padding: 12px 18px;
        font-size: 15px;
    }

    .mobile-switch-text {
        font-size: 12px;
    }
    
    /* When Right Panel Active: Show Sign Up */
    .container.right-panel-active .sign-in-container {
        display: none;
    }
    
    .container.right-panel-active .sign-up-container {
        display: flex;
        animation: slideInMobile 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(0);
    }
    
    @keyframes slideInMobile {
        0% {
            opacity: 0;
            transform: translateY(20px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Page Switcher Section */
    .page-switcher {
        order: 2;
        width: 100%;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        padding: 25px 20px;
        text-align: center;
        position: relative;
        overflow: hidden;
    }
    
    .page-switcher::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
            radial-gradient(circle at 20% 80%, rgba(255, 129, 8, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
        pointer-events: none;
    }
    
    .page-switcher-content {
        position: relative;
        z-index: 2;
    }
    
    .page-indicator {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .page-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .page-dot.active {
        background: var(--accent);
        transform: scale(1.3);
        box-shadow: 0 0 10px rgba(255, 129, 8, 0.4);
    }

    .page-info {
        color: white;
        margin-bottom: 20px;
    }

    .page-title {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 8px;
        color: white;
    }

    .page-description {
        font-size: 14px;
        opacity: 0.9;
        margin-bottom: 15px;
        line-height: 1.4;
    }

    .page-action {
        background: var(--accent);
        color: white;
        border: none;
        padding: 12px 30px;
        border-radius: var(--radius-lg);
        font-weight: 600;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(255, 129, 8, 0.3);
    }

    .page-action::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .page-action:hover::before {
        left: 100%;
    }

    .page-action:hover {
        background: var(--accent-dark);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 129, 8, 0.4);
    }

    .page-action:active {
        transform: translateY(0);
        box-shadow: 0 2px 10px rgba(255, 129, 8, 0.3);
    }
    
    .page-dot.active {
        background: var(--accent);
        transform: scale(1.2);
        box-shadow: 0 0 8px rgba(255, 129, 8, 0.4);
    }
    
    .page-title {
        color: white;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 8px;
        letter-spacing: -0.3px;
    }
    
    .page-description {
        color: rgba(255, 255, 255, 0.85);
        font-size: 13px;
        margin-bottom: 20px;
        line-height: 1.4;
    }
    
    .page-action {
        background: var(--accent);
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: var(--radius-lg);
        font-weight: 600;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .page-action::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }
    
    .page-action:hover::before {
        left: 100%;
    }
    
    .page-action:hover {
        background: var(--accent-dark);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(255, 129, 8, 0.3);
    }
    
    .page-action:active {
        transform: translateY(0);
    }
    
    /* Hide original overlay completely */
    .overlay-container {
        display: none;
    }
    
    /* Form optimizations for page system */
    form {
        padding: 30px 25px;
        max-height: none;
        overflow: visible;
    }
    
    .form-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    h1 {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .form-header p {
        font-size: 13px;
        margin-bottom: 0;
    }
    
    .form-header {
        margin-bottom: 25px;
    }
    
    .logo {
        width: 120px;
    }
    
    .logo img {
        scale: 2;
    }
    
    .back-btn span {
        display: none;
    }
    
    .help-btn span {
        display: none;
    }
    
    .input-wrapper input {
        padding: 12px 14px 12px 40px;
        font-size: 14px;
    }
    
    .input-icon {
        left: 13px;
        font-size: 15px;
    }
    
    .password-toggle {
        right: 13px;
    }
    
    .social {
        height: 38px;
        width: 38px;
    }
    
    .auth-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    /* Two column form layout breaks */
    .form-row {
        gap: 12px;
    }
    
    .form-row .input-group {
        margin-bottom: 0;
    }
    
    .sign-up-container .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Footer mobile layout */
    .auth-footer {
        padding: 20px 0 16px;
    }
    
    .security-indicators {
        gap: 12px;
        padding: 0 20px;
        grid-template-columns: 1fr;
    }
    
    .security-item {
        max-width: 300px;
        margin: 0 auto;
        padding: 10px 14px;
        font-size: 12px;
    }
}

/* ===== MOBILE LARGE (480px - 575px) ===== */
@media (min-width: 480px) and (max-width: 575px) {
    body {
        padding-top: 60px;
        background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
    }
    
    .header-content {
        margin-top: 40px;
        max-width: 400px;
    }

    main {
        margin-top: 40px;
    }
    
    .container {
        max-width: 400px;
        height: auto;
        min-height: 600px;
        margin: 20px 0 40px;
        flex-direction: column;
        position: relative;
        border-radius: var(--radius-2xl);
        background: var(--white);
        box-shadow: 
            0 20px 40px rgba(0, 81, 151, 0.08),
            0 8px 16px rgba(0, 0, 0, 0.04);
    }
    
    /* Page System - Hide/Show Logic */
    .form-container {
        position: static;
        width: 100%;
        height: auto;
        opacity: 1;
        transform: none;
        display: none;
        animation: none;
    }
    
    /* Default: Show Sign In */
    .sign-in-container {
        display: flex;
        order: 1;
    }
    
    .sign-in-container .input-group {
        width: 100%;
    }
    .sign-up-container {
        display: none;
        order: 1;
    }

    /* Show mobile switch container */
    .mobile-switch-container {
        display: block;
        margin-top: 0;
        padding-top: 0;
    }

    .mobile-switch-btn {
        padding: 12px 18px;
        font-size: 15px;
    }

    .mobile-switch-text {
        font-size: 12px;
    }
    
    /* When Right Panel Active: Show Sign Up */
    .container.right-panel-active .sign-in-container {
        display: none;
    }
    
    .container.right-panel-active .sign-up-container {
        display: flex;
        animation: slideInMobile 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(0);
    }
    
    @keyframes slideInMobile {
        0% {
            opacity: 0;
            transform: translateY(20px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Page Switcher Section */
    .page-switcher {
        order: 2;
        width: 100%;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        padding: 25px 20px;
        text-align: center;
        position: relative;
        overflow: hidden;
    }
    
    .page-switcher::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
            radial-gradient(circle at 20% 80%, rgba(255, 129, 8, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
        pointer-events: none;
    }
    
    .page-switcher-content {
        position: relative;
        z-index: 2;
    }
    
    .page-indicator {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .page-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .page-dot.active {
        background: var(--accent);
        transform: scale(1.3);
        box-shadow: 0 0 10px rgba(255, 129, 8, 0.4);
    }

    .page-info {
        color: white;
        margin-bottom: 20px;
    }

    .page-title {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 8px;
        color: white;
    }

    .page-description {
        font-size: 14px;
        opacity: 0.9;
        margin-bottom: 15px;
        line-height: 1.4;
    }

    .page-action {
        background: var(--accent);
        color: white;
        border: none;
        padding: 12px 30px;
        border-radius: var(--radius-lg);
        font-weight: 600;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(255, 129, 8, 0.3);
    }

    .page-action::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .page-action:hover::before {
        left: 100%;
    }

    .page-action:hover {
        background: var(--accent-dark);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 129, 8, 0.4);
    }

    .page-action:active {
        transform: translateY(0);
        box-shadow: 0 2px 10px rgba(255, 129, 8, 0.3);
    }
    
    .page-dot.active {
        background: var(--accent);
        transform: scale(1.2);
        box-shadow: 0 0 8px rgba(255, 129, 8, 0.4);
    }
    
    .page-title {
        color: white;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 8px;
        letter-spacing: -0.3px;
    }
    
    .page-description {
        color: rgba(255, 255, 255, 0.85);
        font-size: 13px;
        margin-bottom: 20px;
        line-height: 1.4;
    }
    
    .page-action {
        background: var(--accent);
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: var(--radius-lg);
        font-weight: 600;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .page-action::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }
    
    .page-action:hover::before {
        left: 100%;
    }
    
    .page-action:hover {
        background: var(--accent-dark);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(255, 129, 8, 0.3);
    }
    
    .page-action:active {
        transform: translateY(0);
    }
    
    /* Hide original overlay completely */
    .overlay-container {
        display: none;
    }
    
    /* Form optimizations for page system */
    form {
        padding: 30px 25px;
        max-height: none;
        overflow: visible;
    }
    
    .form-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    h1 {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .form-header p {
        font-size: 13px;
        margin-bottom: 0;
    }
    
    .form-header {
        margin-bottom: 25px;
    }
    
    .logo {
        width: 120px;
    }
    
    .logo img {
        scale: 2;
    }
    
    .back-btn span {
        display: none;
    }
    
    .help-btn span {
        display: none;
    }
    
    .input-wrapper input {
        padding: 12px 14px 12px 40px;
        font-size: 14px;
    }
    
    .input-icon {
        left: 13px;
        font-size: 15px;
    }
    
    .password-toggle {
        right: 13px;
    }
    
    .social {
        height: 38px;
        width: 38px;
    }
    
    .auth-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    /* Two column form layout breaks */
    .form-row {
        gap: 12px;
    }
    
    .form-row .input-group {
        margin-bottom: 0;
    }
    
    .sign-up-container .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Footer mobile layout */
    .auth-footer {
        padding: 20px 0 16px;
    }
    
    .security-indicators {
        gap: 12px;
        padding: 0 20px;
        grid-template-columns: 1fr;
    }
    
    .security-item {
        max-width: 300px;
        margin: 0 auto;
        padding: 10px 14px;
        font-size: 12px;
    }}

/* ===== MOBILE MEDIUM (375px - 479px) ===== */
@media (min-width: 375px) and (max-width: 479px) {
    body {
        padding-top: 60px;
        background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
    }
    
    .header-content {
        margin-top: 40px;
        width: 95%;
    }

    main {
        margin-top: 40px;
    }
    
    .container {
        width: 95%;
        height: auto;
        min-height: 600px;
        margin: 20px 0 40px;
        flex-direction: column;
        position: relative;
        border-radius: var(--radius-2xl);
        background: var(--white);
        box-shadow: 
            0 20px 40px rgba(0, 81, 151, 0.08),
            0 8px 16px rgba(0, 0, 0, 0.04);
    }
    
    /* Page System - Hide/Show Logic */
    .form-container {
        position: static;
        width: 100%;
        height: auto;
        opacity: 1;
        transform: none;
        display: none;
        animation: none;
    }
    
    /* Default: Show Sign In */
    .sign-in-container {
        display: flex;
        order: 1;
    }
    
    .sign-in-container .input-group {
        width: 100%;
    }
    .sign-up-container {
        display: none;
        order: 1;
    }

    /* Show mobile switch container */
    .mobile-switch-container {
        display: block;
        margin-top: 0;
        padding-top: 0;
    }

    .mobile-switch-btn {
        padding: 12px 18px;
        font-size: 15px;
    }

    .mobile-switch-text {
        font-size: 12px;
    }
    
    /* When Right Panel Active: Show Sign Up */
    .container.right-panel-active .sign-in-container {
        display: none;
    }
    
    .container.right-panel-active .sign-up-container {
        display: flex;
        animation: slideInMobile 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(0);
    }
    
    @keyframes slideInMobile {
        0% {
            opacity: 0;
            transform: translateY(20px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Page Switcher Section */
    .page-switcher {
        order: 2;
        width: 100%;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        padding: 25px 20px;
        text-align: center;
        position: relative;
        overflow: hidden;
    }
    
    .page-switcher::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
            radial-gradient(circle at 20% 80%, rgba(255, 129, 8, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
        pointer-events: none;
    }
    
    .page-switcher-content {
        position: relative;
        z-index: 2;
    }
    
    .page-indicator {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .page-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .page-dot.active {
        background: var(--accent);
        transform: scale(1.3);
        box-shadow: 0 0 10px rgba(255, 129, 8, 0.4);
    }

    .page-info {
        color: white;
        margin-bottom: 20px;
    }

    .page-title {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 8px;
        color: white;
    }

    .page-description {
        font-size: 14px;
        opacity: 0.9;
        margin-bottom: 15px;
        line-height: 1.4;
    }

    .page-action {
        background: var(--accent);
        color: white;
        border: none;
        padding: 12px 30px;
        border-radius: var(--radius-lg);
        font-weight: 600;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(255, 129, 8, 0.3);
    }

    .page-action::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .page-action:hover::before {
        left: 100%;
    }

    .page-action:hover {
        background: var(--accent-dark);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 129, 8, 0.4);
    }

    .page-action:active {
        transform: translateY(0);
        box-shadow: 0 2px 10px rgba(255, 129, 8, 0.3);
    }
    
    .page-dot.active {
        background: var(--accent);
        transform: scale(1.2);
        box-shadow: 0 0 8px rgba(255, 129, 8, 0.4);
    }
    
    .page-title {
        color: white;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 8px;
        letter-spacing: -0.3px;
    }
    
    .page-description {
        color: rgba(255, 255, 255, 0.85);
        font-size: 13px;
        margin-bottom: 20px;
        line-height: 1.4;
    }
    
    .page-action {
        background: var(--accent);
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: var(--radius-lg);
        font-weight: 600;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .page-action::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }
    
    .page-action:hover::before {
        left: 100%;
    }
    
    .page-action:hover {
        background: var(--accent-dark);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(255, 129, 8, 0.3);
    }
    
    .page-action:active {
        transform: translateY(0);
    }
    
    /* Hide original overlay completely */
    .overlay-container {
        display: none;
    }
    
    /* Form optimizations for page system */
    form {
        padding: 30px 25px;
        max-height: none;
        overflow: visible;
    }
    
    .form-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    h1 {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .form-header p {
        font-size: 13px;
        margin-bottom: 0;
    }
    
    .form-header {
        margin-bottom: 25px;
    }
    
    .logo {
        width: 120px;
    }
    
    .logo img {
        scale: 2;
    }
    
    .back-btn span {
        display: none;
    }
    
    .help-btn span {
        display: none;
    }
    
    .input-wrapper input {
        padding: 12px 14px 12px 40px;
        font-size: 14px;
    }
    
    .input-icon {
        left: 13px;
        font-size: 15px;
    }
    
    .password-toggle {
        right: 13px;
    }
    
    .social {
        height: 38px;
        width: 38px;
    }
    
    .auth-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    /* Two column form layout breaks */
    .form-row {
        gap: 12px;
    }
    
    .form-row .input-group {
        margin-bottom: 0;
    }
    
    .sign-up-container .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Footer mobile layout */
    .auth-footer {
        padding: 20px 0 16px;
    }
    
    .security-indicators {
        gap: 12px;
        padding: 0 20px;
        grid-template-columns: 1fr;
    }
    
    .security-item {
        max-width: 300px;
        margin: 0 auto;
        padding: 10px 14px;
        font-size: 12px;
    }}

/* ===== MOBILE SMALL (320px - 374px) ===== */
@media (min-width: 320px) and (max-width: 374px) {
    body {
        padding-top: 60px;
        background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
    }
    
    .header-content {
        margin-top: 40px;
        width: 100%;
        padding: 0 20px;
    }

    main {
        margin-top: 40px;
        padding: 0 20px;
    }
    
    .container {
        width: 100%;
        height: auto;
        min-height: 600px;
        margin: 20px 0 40px;
        flex-direction: column;
        position: relative;
        border-radius: var(--radius-2xl);
        background: var(--white);
        box-shadow: 
            0 20px 40px rgba(0, 81, 151, 0.08),
            0 8px 16px rgba(0, 0, 0, 0.04);
    }
    
    /* Page System - Hide/Show Logic */
    .form-container {
        position: static;
        width: 100%;
        height: auto;
        opacity: 1;
        transform: none;
        display: none;
        animation: none;
    }
    
    /* Default: Show Sign In */
    .sign-in-container {
        display: flex;
        order: 1;
    }
    
    .sign-in-container .input-group {
        width: 100%;
    }
    .sign-up-container {
        display: none;
        order: 1;
    }

    /* Show mobile switch container */
    .mobile-switch-container {
        display: block;
        margin-top: 0;
        padding-top: 0;
    }

    .mobile-switch-btn {
        padding: 12px 18px;
        font-size: 15px;
    }

    .mobile-switch-text {
        font-size: 12px;
    }
    
    /* When Right Panel Active: Show Sign Up */
    .container.right-panel-active .sign-in-container {
        display: none;
    }
    
    .container.right-panel-active .sign-up-container {
        display: flex;
        animation: slideInMobile 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(0);
    }
    
    @keyframes slideInMobile {
        0% {
            opacity: 0;
            transform: translateY(20px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Page Switcher Section */
    .page-switcher {
        order: 2;
        width: 100%;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        padding: 25px 20px;
        text-align: center;
        position: relative;
        overflow: hidden;
    }
    
    .page-switcher::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
            radial-gradient(circle at 20% 80%, rgba(255, 129, 8, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
        pointer-events: none;
    }
    
    .page-switcher-content {
        position: relative;
        z-index: 2;
    }
    
    .page-indicator {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .page-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .page-dot.active {
        background: var(--accent);
        transform: scale(1.3);
        box-shadow: 0 0 10px rgba(255, 129, 8, 0.4);
    }

    .page-info {
        color: white;
        margin-bottom: 20px;
    }

    .page-title {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 8px;
        color: white;
    }

    .page-description {
        font-size: 14px;
        opacity: 0.9;
        margin-bottom: 15px;
        line-height: 1.4;
    }

    .page-action {
        background: var(--accent);
        color: white;
        border: none;
        padding: 12px 30px;
        border-radius: var(--radius-lg);
        font-weight: 600;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(255, 129, 8, 0.3);
    }

    .page-action::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .page-action:hover::before {
        left: 100%;
    }

    .page-action:hover {
        background: var(--accent-dark);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 129, 8, 0.4);
    }

    .page-action:active {
        transform: translateY(0);
        box-shadow: 0 2px 10px rgba(255, 129, 8, 0.3);
    }
    
    .page-dot.active {
        background: var(--accent);
        transform: scale(1.2);
        box-shadow: 0 0 8px rgba(255, 129, 8, 0.4);
    }
    
    .page-title {
        color: white;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 8px;
        letter-spacing: -0.3px;
    }
    
    .page-description {
        color: rgba(255, 255, 255, 0.85);
        font-size: 13px;
        margin-bottom: 20px;
        line-height: 1.4;
    }
    
    .page-action {
        background: var(--accent);
        color: white;
        border: none;
        padding: 12px 24px;
        border-radius: var(--radius-lg);
        font-weight: 600;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .page-action::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }
    
    .page-action:hover::before {
        left: 100%;
    }
    
    .page-action:hover {
        background: var(--accent-dark);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(255, 129, 8, 0.3);
    }
    
    .page-action:active {
        transform: translateY(0);
    }
    
    /* Hide original overlay completely */
    .overlay-container {
        display: none;
    }
    
    /* Form optimizations for page system */
    form {
        padding: 30px 25px;
        max-height: none;
        overflow: visible;
    }
    
    .form-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    h1 {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .form-header p {
        font-size: 13px;
        margin-bottom: 0;
    }
    
    .form-header {
        margin-bottom: 25px;
    }
    
    .logo {
        width: 120px;
    }
    
    .logo img {
        scale: 2;
    }
    
    .back-btn span {
        display: none;
    }
    
    .help-btn span {
        display: none;
    }
    
    .input-wrapper input {
        padding: 12px 14px 12px 40px;
        font-size: 14px;
    }
    
    .input-icon {
        left: 13px;
        font-size: 15px;
    }
    
    .password-toggle {
        right: 13px;
    }
    
    .social {
        height: 38px;
        width: 38px;
    }
    
    .auth-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    /* Two column form layout breaks */
    .form-row {
        gap: 12px;
    }
    
    .form-row .input-group {
        margin-bottom: 0;
    }
    
    .sign-up-container .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Footer mobile layout */
    .auth-footer {
        padding: 20px 0 16px;
    }
    
    .security-indicators {
        gap: 12px;
        padding: 0 20px;
        grid-template-columns: 1fr;
    }
    
    .security-item {
        max-width: 300px;
        margin: 0 auto;
        padding: 10px 14px;
        font-size: 12px;
    }}

/* ===== MOBILE EXTRA SMALL (280px - 319px) ===== */
@media (max-width: 319px) {
    body {
        padding-top: 50px;
        font-size: 13px;
    }
    
    .auth-header {
        padding: 6px 0;
    }
    
    .header-content {
        padding: 0 12px;
        margin-top: 8px;
    }
    
    .container {
        width: 99%;
        height: auto;
        min-height: 460px;
        margin: 12px 0 25px;
        border-radius: var(--radius);
        flex-direction: column;
    }
    
    /* Enable page system for mobile extra small */
    .form-container {
        position: static;
        width: 100%;
        height: auto;
        opacity: 1;
        transform: none;
        display: none;
    }
    
    .sign-in-container {
        display: flex;
        order: 1;
    }
    
    .sign-up-container {
        display: none;
        order: 1;
    }

    /* Show mobile switch container */
    .mobile-switch-container {
        display: block;
    }

    .mobile-switch-btn {
        padding: 7px 10px;
        font-size: 11px;
    }

    .mobile-switch-text {
        font-size: 8px;
    }
    
    .container.right-panel-active .sign-in-container {
        display: none;
    }
    
    .container.right-panel-active .sign-up-container {
        display: flex;
        animation: slideInMobile 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .overlay-container {
        display: none;
    }
    
    /* Page switcher for mobile extra small */
    .page-switcher {
        order: 2;
        width: 100%;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        padding: 14px 12px;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .page-action {
        padding: 7px 15px;
        font-size: 12px;
        border-radius: var(--radius-sm);
    }

    .page-title {
        font-size: 13px;
        margin-bottom: 3px;
    }

    .page-description {
        font-size: 10px;
        margin-bottom: 7px;
    }
    
    form {
        padding: 12px 12px;
    }
    
    .form-header {
        margin-bottom: 15px;
    }
    
    .form-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    h1 {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .form-header p {
        font-size: 9px;
    }
    
    .logo {
        width: 70px;
        height: 25px;
    }
    
    .logo img {
        scale: 0.9;
    }
    
    .back-btn {
        padding: 5px 8px;
        font-size: 10px;
    }
    
    .input-group {
        margin-bottom: 6px;
    }
    
    .input-wrapper input {
        padding: 8px 10px 8px 32px;
        font-size: 12px;
    }
    
    .input-icon {
        left: 9px;
        font-size: 11px;
    }
    
    .password-toggle {
        right: 9px;
        padding: 3px;
    }
    
    .social {
        height: 30px;
        width: 30px;
        font-size: 11px;
    }
    
    .auth-btn {
        padding: 8px 16px;
        font-size: 10px;
    }
    
    .checkbox-text {
        font-size: 8px;
    }
    
    .ghost {
        padding: 7px 14px;
        font-size: 9px;
    }
    
    .auth-footer {
        padding: 12px 0 8px;
    }
    
    .security-item {
        font-size: 8px;
        padding: 5px 6px;
    }
    
    .security-item i {
        font-size: 11px;
    }
}

/* ===== LANDSCAPE ORIENTATION OPTIMIZATIONS ===== */

/* ===== HIGH DPI SCREENS ===== */
