/* Enhanced Login Styles - Optimized and Modern */

/* CSS Custom Properties */
:root {
    /* Colors */
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #0097c7;
    --success-color: #22b573;
    --success-light: #7bdcb5;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280; 
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --accent-gradient: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    --success-gradient: linear-gradient(135deg, var(--success-color) 0%, var(--success-light) 100%);
    --glass-gradient: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px; 
    --radius-lg: 16px;  
    --radius-xl: 24px; 
    --radius-2xl: 32px;
    /* Animation */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1); 
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(120deg, #e0e7ef 0%, #f7fafc 70%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--gray-800);
    overflow-x: hidden; /* was: overflow: hidden — that clips footer/ticker on small viewports */
}

    body.loaded {
        animation: fadeIn 0.6s ease-out;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Enhanced Header */
.modern-banner {
    background: var(--primary-gradient);
    min-height: 70px;
    box-shadow: var(--shadow-lg);
    display: flex;
    padding: 0 30px 0 0;
    border-bottom-left-radius: 64px 44px;
    border-bottom-right-radius: 64px 44px;
    position: relative;
    overflow: hidden;
    animation: slideDown 0.8s var(--bounce);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modern-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .logo-container img {
        max-height: 70px; /* Changed from 80px */
        margin: 8px; /* Changed from 10px */
        filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
          z-index: 2;
        position: relative;
    }
    .logo-container p {
        font-family: 'DecoType Thuluth II';
        font-size: 2rem;
        font-weight: 500;
        margin: 8px;
        filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
        z-index: 2;
        position: relative;
    }

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Main Content Wrapper */
.main-login-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem; /* Changed from 2rem 1rem */
    position: relative;
    overscroll-behavior: contain;
}

/* ── Login Footer ─────────────────────────────────────────────── */
.login-footer {
    margin-top: auto;
    width: 100% !important;
    align-self: stretch !important;
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

/* Animated gradient accent bar */
.login-footer__accent {
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--secondary-color) 20%,
        var(--accent-color) 50%,
        var(--secondary-color) 80%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: footer-shimmer 4s ease-in-out infinite;
}

@keyframes footer-shimmer {
    0%, 100% { background-position: 100% 50%; }
    50% { background-position: 0% 50%; }
}

/* Centered single row */
.login-footer__inner {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    direction: rtl !important;
    padding: 0.65rem 1.5rem;
    gap: 0.6rem;
    margin: 0 auto;
}

.login-footer__text {
    color: var(--gray-300);
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
}

.login-footer__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gray-500);
    flex-shrink: 0;
}

.login-footer__copy {
    color: var(--gray-400);
    font-size: 0.75rem;
    font-weight: 400;
    white-space: nowrap;
}

/* Login Card */
.login-outer-wrap {
    width: 100%;
    background-color:transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-2xl);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    max-width: 1300px;
    width: 100%;
    display: flex;
    flex-direction: row;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: cardSlideUp 0.8s var(--bounce);
}

@keyframes cardSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    z-index: 1;
}

/* Form Column */
.login-form-col {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0 0 5rem 0; /* Changed from 2.5rem 2rem */
    min-height: 350px; /* Changed from 600px */
    position: relative;
}

    .login-form-col::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 1px;
        height: 100%;
        background: linear-gradient(to bottom, transparent, var(--gray-200), transparent);
    }

.login-form-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 480px;
}

/* Enhanced Title */
.login-title {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    animation: titleSlide 0.8s ease-out 0.3s both;
}

@keyframes titleSlide {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.title-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--accent-gradient);
    margin: 1rem auto 0;
    border-radius: 2px;
    animation: underlineExpand 0.6s ease-out 0.8s both;
}

@keyframes underlineExpand {
    from {
        width: 0;
    }

    to {
        width: 80px;
    }
}

/* Enhanced Tab System */
.sso-tabs {
    display: flex;
    width: 100%;
    background: var(--gray-100);
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.sso-tab-btn {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--gray-600);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    z-index: 2;
    padding: 1rem 0.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .sso-tab-btn.active {
        background: var(--white);
        color: var(--primary-color);
        box-shadow: var(--shadow-md);
        transform: translateY(-1px);
    }

    .sso-tab-btn:not(.active):hover {
        background: rgba(255, 255, 255, 0.7);
        color: var(--secondary-color);
    }

    .sso-tab-btn:focus-visible {
        outline: 2px solid var(--secondary-color);
        outline-offset: 2px;
    }

.tab-icon {
    font-size: 1.1rem;
    transition: transform var(--transition-fast);
}

.sso-tab-btn.active .tab-icon {
    transform: scale(1.1);
}

.tab-indicator {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    height: calc(100% - 12px);
    width: calc(50% - 6px);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s var(--bounce);
    z-index: 1;
}

/* Tab Content */
.tab-views {
    position: relative;
    height: 100%;
    min-height: 300px;
    max-height: 300px;
}

.tab-view {
    display: none;
    animation: tabFadeIn 0.4s ease-out;
}

    .tab-view.active {
        display: block;
    }

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced Form Styles */
.auth-form {
    width: 100%;
}

.form-section {
    margin-bottom: 1.5rem;
}

.form-group {
    /* margin-bottom: 1.3rem; */
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    font-size: 1rem;
}

.label-icon {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.input-wrapper {
    position: relative;
    margin-bottom: 0.5rem;
}

.enhanced-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-normal);
    background: var(--white);
    color: var(--gray-800);
}

    .enhanced-input:focus {
        outline: none;
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
        transform: translateY(-1px);
    }

        .enhanced-input:focus + .input-focus-line {
            transform: scaleX(1);
        }

.input-focus-line {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.input-wrapper.valid .enhanced-input {
    border-color: var(--success-color);
    background: rgba(34, 181, 115, 0.05);
}

.input-wrapper.invalid .enhanced-input {
    border-color: var(--danger-color);
    background: rgba(231, 76, 60, 0.05);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.input-error {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

    .input-error::before {
        content: '⚠';
        font-size: 0.75rem;
    }

/* Password Field */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

    .password-toggle:hover {
        color: var(--secondary-color);
        background: rgba(52, 152, 219, 0.1);
    }

/* Enhanced Buttons */
.btn {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    font-family: inherit;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    pointer-events: none;
    z-index: 1;
}

    .btn-ripple.ripple-active {
        animation: ripple 0.6s linear;
    }

@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

.btn:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Sanad Button */
.sanad-btn {
    background: var(--accent-gradient);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

    .sanad-btn:hover {
        background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
        box-shadow: var(--shadow-xl);
    }

.sanad-logo {
    height: 32px;
    filter: brightness(0) invert(1);
    transition: transform var(--transition-fast);
}

.sanad-btn:hover .sanad-logo {
    transform: scale(1.1);
}

.btn-arrow {
    transition: transform var(--transition-fast);
}

.sanad-btn:hover .btn-arrow {
    transform: translateX(-4px);
}

/* Custom Login Button */
.custom-btn {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

    .custom-btn:hover {
        background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
        box-shadow: var(--shadow-xl);
    }

.btn-icon {
    transition: transform var(--transition-fast);
}

.custom-btn:hover .btn-icon {
    transform: translateX(-2px);
}

/* New Account Button */
.new-account-btn {
    background: var(--success-gradient);
    color: var(--white) !important;
    box-shadow: var(--shadow-md);
    text-decoration: none !important;
}

    .new-account-btn:hover {
        background: linear-gradient(135deg, var(--success-light) 0%, var(--success-color) 100%);
        color: var(--white) !important;
        box-shadow: var(--shadow-xl);
    }

/* Form Footer */
.form-footer {
    margin-top: auto;
}

.divider {
    position: relative;
    text-align: center;
    /*margin: 0 0;*/
}

    .divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: var(--gray-200);
    }

.divider-text {
    background: var(--white);
    padding: 0 1rem;
    color: var(--gray-500);
    font-size: 0.875rem;
    position: relative;
}

/* Enhanced Alerts */
.alert-enhanced {
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    animation: alertSlide 0.4s ease-out;
}

@keyframes alertSlide {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-danger.alert-enhanced {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-warning.alert-enhanced {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.alert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Banner Column */
.login-banner-col {
    background: var(--primary-gradient);
    position: relative;
    min-height: 450px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter var(--transition-slow);
}

.login-banner-col:hover .img-cover {
}

.login-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, rgba(52, 152, 219, 0.6) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    z-index: 2;
}

.banner-content {
    max-width: 400px;
    animation: bannerFadeIn 1s ease-out 0.5s both;
}

@keyframes bannerFadeIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.main-title {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.title-line {
    display: block;
}

    .title-line.highlight {
        background: linear-gradient(45deg, #fff, #e3f2fd);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

    .subtitle p {
        margin: 0.5rem 0;
    }

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-weight: 500;
    animation: featureSlide 0.6s ease-out;
}

    .feature-item:nth-child(2) {
        animation-delay: 0.2s;
    }

    .feature-item:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes featureSlide {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.feature-icon {
    font-size: 1.2rem;
    color: var(--success-light);
    flex-shrink: 0;
}

/* Floating Decorations */
.banner-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    right: 15%;
    animation-delay: 0s;
}

.shape-2 {
    width: 40px;
    height: 40px;
    top: 60%;
    right: 80%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 80%;
    right: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

    .loading-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.loading-spinner {
    text-align: center;
    color: var(--primary-color);
}

.spinner-ring {
    width: 60px;
    height: 60px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-600);
}

/* Form Helper Text */
.form-text {
    color: var(--gray-500);
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .login-card {
        max-width: 95%;
    }

    .main-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 991px) {
    .modern-banner {
        min-height: 60px;
        border-radius: 0 0 40px 40px;
    }

    .logo-container img {
        max-height: 60px;
    }

    .login-card {
        flex-direction: column-reverse;
        max-width: 90%;
        min-height: auto;
    }

    .login-form-col {
        min-height: auto;
        padding: 1.5rem 1.5rem;
    }

    .login-form-wrapper {
        min-height: auto;
    }

    .login-banner-col {
        min-height: 200px;
    }

    .main-title {
        font-size: 2rem;
    }

    .features-list {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
}

@media (max-width: 767px) {
    .main-login-wrapper {
        padding: 0.5rem 0.5rem;
    }

    .login-card {
        border-radius: var(--radius-lg);
        max-width: 98%;
    }

    .login-form-col {
        padding: 1rem 1rem;
    }

    .title-text {
        font-size: 1.75rem;
    }

    .sso-tab-btn {
        padding: 0.875rem 0.5rem;
        font-size: 0.95rem;
    }

    .enhanced-input {
        padding: 12px 16px;
    }

    .btn,
    .sso-tab-btn,
    .password-toggle {
        min-height: 44px; /* iOS minimum touch target */
        min-width: 44px;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-height: 50px;
    }

    .main-title {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .features-list {
        flex-direction: column;
        gap: 0.75rem;
    }

    .login-banner-col {
        min-height: 180px;
    }

    .banner-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .login-form-col {
        padding: 1rem 0.75rem;
    }

    .title-text {
        font-size: 1.5rem;
    }

    .sso-tabs {
        padding: 4px;
    }

    .sso-tab-btn {
        padding: 0.75rem 0.25rem;
        font-size: 0.875rem;
        flex-direction: column;
        gap: 0.25rem;
    }

    .tab-icon {
        font-size: 1rem;
    }

    .enhanced-input {
        padding: 0.75rem 0.875rem;
        font-size: 0.95rem;
    }

    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        min-height: 48px;
    }

    .btn-content {
        gap: 0.5rem;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .login-card {
        border: 2px solid var(--gray-800);
    }

    .enhanced-input {
        border-width: 2px;
    }

    .btn {
        border: 2px solid transparent;
    }

        .btn:focus-visible {
            outline-width: 3px;
        }
}

/* Print Styles */
@media print {
    .modern-banner,
    .login-banner-col,
    footer {
        display: none !important;
    }

    .login-card {
        box-shadow: none;
        border: 1px solid var(--gray-400);
    }

    .main-login-wrapper {
        padding: 1rem;
    }
}