/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    min-height: 100vh;
    overflow: hidden;
}

/* Login Container */
.login-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Left Side - Brand */
.brand-section {
    flex: 1;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
}

.brand-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.05) 0%, rgba(66, 133, 244, 0.05) 100%);
}

.brand-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-direction: column;
    text-align: center;
}

.logo-image {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 50%;
}

.logo-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 48px;
    font-weight: 700;
    color: #1a73e8;
    margin-bottom: 4px;
    text-align: center;
}

.logo-motto {
    font-size: 14px;
    color: #5f6368;
    font-weight: 400;
    line-height: 1.4;
    max-width: 200px;
    text-align: center;
}

.brand-content h1 {
    font-size: 42px;
    font-weight: 700;
    color: #202124;
    margin-bottom: 16px;
    line-height: 1.2;
    text-align: center;
}

.brand-content p {
    font-size: 18px;
    color: #5f6368;
    line-height: 1.6;
    text-align: center;
}

/* Right Side - Login Form */
.login-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background-color: #ffffff;
    overflow-y: auto;
    max-height: 100vh;
}

.login-card {
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Access Type Selector */
.access-selector {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 32px;
    gap: 4px;
}

.access-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #5f6368;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.access-tab:hover {
    color: #1a73e8;
    background: rgba(26, 115, 232, 0.05);
}

.access-tab.active {
    background: #ffffff;
    color: #1a73e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.access-tab i {
    font-size: 16px;
}

/* Access Content */
.access-content {
    margin-bottom: 32px;
}

.content-header {
    text-align: center;
    margin-bottom: 32px;
}

.content-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 8px;
}

.content-header p {
    font-size: 16px;
    color: #5f6368;
}

/* Login Methods */
.login-method {
    margin-bottom: 24px;
}

.login-method h3 {
    font-size: 18px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8eaed;
}

.method-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.method-option {
    padding: 16px;
    background: #ffffff;
    border: 2px solid #e8eaed;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

.method-option:hover {
    border-color: #1a73e8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.1);
}

.method-option.selected {
    border-color: #1a73e8;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
}

.method-option .option-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fbbc04 0%, #f9ab00 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.method-option .option-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 2px;
}

.method-option .option-content p {
    font-size: 12px;
    color: #5f6368;
}

/* Alternative Login */
.alternative-login {
    margin-bottom: 24px;
}

.divider {
    text-align: center;
    position: relative;
    margin: 24px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e8eaed;
}

.divider span {
    background: #ffffff;
    padding: 0 16px;
    color: #5f6368;
    font-size: 14px;
}

.alt-buttons {
    display: flex;
    gap: 12px;
}

.alt-btn {
    flex: 1;
    padding: 16px;
    border: 2px solid #e8eaed;
    border-radius: 12px;
    background: #ffffff;
    color: #5f6368;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.alt-btn:hover {
    border-color: #1a73e8;
    color: #1a73e8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.1);
}

.spid-btn {
    border-color: #0066cc;
    color: #0066cc;
}

.spid-btn:hover {
    border-color: #0066cc;
    color: #0066cc;
}

.cie-btn {
    border-color: #34a853;
    color: #34a853;
}

.cie-btn:hover {
    border-color: #34a853;
    color: #34a853;
}

/* Identity Options */
.identity-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.identity-option {
    padding: 20px;
    background: #ffffff;
    border: 2px solid #e8eaed;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

.identity-option:hover {
    border-color: #1a73e8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.1);
}

.identity-option.selected {
    border-color: #1a73e8;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
}

.option-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.spid-icon {
    background: linear-gradient(135deg, #0066cc 0%, #1a73e8 100%);
}

.cie-icon {
    background: linear-gradient(135deg, #34a853 0%, #2d8e47 100%);
}

.cns-icon {
    background: linear-gradient(135deg, #ea4335 0%, #d93025 100%);
}

.option-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 4px;
}

.option-content p {
    font-size: 14px;
    color: #5f6368;
}

/* Registration Info */
.registration-info {
    margin-bottom: 24px;
}

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border-radius: 12px;
    border: 1px solid #e8f4fd;
}

.info-box i {
    color: #1a73e8;
    font-size: 16px;
    margin-top: 2px;
}

.info-box h4 {
    font-size: 14px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 4px;
}

.info-box p {
    font-size: 13px;
    color: #5f6368;
    line-height: 1.5;
}

/* Scanner Area */
.scanner-area {
    text-align: center;
    margin: 24px 0;
    padding: 32px;
    background: #f8f9fa;
    border-radius: 16px;
}

.scanner-circle {
    width: 80px;
    height: 80px;
    border: 3px solid #e8eaed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.scanner-circle.active {
    border-color: #1a73e8;
    box-shadow: 0 0 0 6px rgba(26, 115, 232, 0.1);
}

.scanner-circle.scanning {
    animation: pulse 2s infinite;
}

.scanner-circle i {
    font-size: 32px;
    color: #5f6368;
    transition: color 0.3s ease;
}

.scanner-circle.active i {
    color: #1a73e8;
}

.scanner-area p {
    font-size: 16px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 16px;
}

.progress-container {
    width: 200px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e8eaed;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a73e8 0%, #4285f4 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 6px rgba(26, 115, 232, 0.1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(26, 115, 232, 0.2);
    }
}

/* Buttons */
.btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #174ea6 0%, #1a73e8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Footer */
.login-footer {
    text-align: center;
    font-size: 14px;
    color: #5f6368;
    margin-top: 24px;
}

.login-footer a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #34a853 0%, #2d8e47 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin: 0 auto 24px;
}

.modal-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 8px;
}

.modal-content p {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 24px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .login-container {
        flex-direction: column;
        min-height: 100vh;
    }
    
    .brand-section {
        flex: none;
        padding: 40px 20px;
        min-height: 200px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }
    
    .login-section {
        flex: 1;
        padding: 20px;
        background-color: #ffffff;
        overflow-y: auto;
    }
    
    .login-card {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .brand-content h1 {
        font-size: 32px;
    }
    
    .brand-content p {
        font-size: 16px;
    }
    
    .logo-image {
        width: 120px;
        height: 120px;
    }
    
    .logo-text {
        font-size: 36px;
    }
    
    .logo-motto {
        font-size: 13px;
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .login-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .brand-section {
        padding: 30px 16px;
        min-height: 180px;
    }
    
    .login-section {
        padding: 16px;
        flex: 1;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding-top: 20px;
    }
    
    .login-card {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .brand-content {
        max-width: 100%;
        padding: 0;
    }
    
    .brand-content h1 {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .brand-content p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .logo {
        margin-bottom: 24px;
    }
    
    .logo-image {
        width: 80px;
        height: 80px;
    }
    
    .logo-text {
        font-size: 24px;
        margin-bottom: 2px;
    }
    
    .logo-motto {
        font-size: 11px;
        max-width: 200px;
        line-height: 1.3;
    }
    
    /* Access Selector */
    .access-selector {
        margin-bottom: 20px;
        padding: 3px;
        gap: 3px;
    }
    
    .access-tab {
        padding: 12px 16px;
        font-size: 13px;
        gap: 6px;
        min-height: 44px;
    }
    
    .access-tab i {
        font-size: 14px;
    }
    
    /* Content Headers */
    .content-header {
        margin-bottom: 24px;
    }
    
    .content-header h2 {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .content-header p {
        font-size: 14px;
    }
    
    /* Method Options */
    .method-options {
        gap: 10px;
    }
    
    .method-option {
        padding: 14px;
        gap: 12px;
        min-height: 60px;
    }
    
    .method-option .option-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .method-option .option-content h4 {
        font-size: 13px;
        margin-bottom: 1px;
    }
    
    .method-option .option-content p {
        font-size: 11px;
        line-height: 1.3;
    }
    
    /* Identity Options */
    .identity-options {
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .identity-option {
        padding: 16px;
        gap: 12px;
        min-height: 70px;
    }
    
    .option-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .option-content h3 {
        font-size: 14px;
        margin-bottom: 3px;
        line-height: 1.3;
    }
    
    .option-content p {
        font-size: 12px;
        line-height: 1.3;
    }
    
    /* Biometric Sections */
    .biometric-section {
        margin-bottom: 24px;
    }
    
    .biometric-section h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    /* Scanner Area */
    .scanner-area {
        margin: 20px 0;
        padding: 24px 16px;
    }
    
    .scanner-circle {
        width: 70px;
        height: 70px;
        margin-bottom: 16px;
    }
    
    .scanner-circle i {
        font-size: 28px;
    }
    
    .scanner-area p {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .progress-container {
        width: 180px;
    }
    
    /* QR Code Area */
    .qr-area {
        margin: 20px 0;
        padding: 20px 16px;
    }
    
    .qr-code {
        width: 120px;
        height: 120px;
        font-size: 48px;
    }
    
    .qr-container p {
        font-size: 13px;
    }
    
    .qr-instructions {
        font-size: 11px !important;
        line-height: 1.3;
    }
    
    /* Info Box */
    .info-box {
        padding: 14px;
        gap: 10px;
    }
    
    .info-box i {
        font-size: 14px;
        margin-top: 1px;
    }
    
    .info-box h4 {
        font-size: 13px;
        margin-bottom: 3px;
    }
    
    .info-box p {
        font-size: 12px;
        line-height: 1.4;
    }
    
    /* Buttons */
    .btn-primary {
        padding: 14px 20px;
        font-size: 15px;
        min-height: 48px;
        gap: 8px;
    }
    
    /* Footer */
    .login-footer {
        margin-top: 20px;
        font-size: 13px;
    }
    
    /* Modal */
    .modal-content {
        padding: 30px 20px;
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .success-icon {
        width: 56px;
        height: 56px;
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .modal-content h2 {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .modal-content p {
        font-size: 13px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .brand-section {
        padding: 24px 12px;
        min-height: 160px;
    }
    
    .login-section {
        padding: 12px;
        padding-top: 16px;
    }
    
    .brand-content h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .brand-content p {
        font-size: 13px;
    }
    
    .logo-image {
        width: 70px;
        height: 70px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .logo-motto {
        font-size: 10px;
        max-width: 180px;
    }
    
    /* Access Selector */
    .access-selector {
        margin-bottom: 16px;
    }
    
    .access-tab {
        padding: 10px 12px;
        font-size: 12px;
        gap: 4px;
        min-height: 40px;
    }
    
    .access-tab i {
        font-size: 12px;
    }
    
    /* Content Headers */
    .content-header {
        margin-bottom: 20px;
    }
    
    .content-header h2 {
        font-size: 18px;
    }
    
    .content-header p {
        font-size: 13px;
    }
    
    /* Method Options */
    .method-option {
        padding: 12px;
        gap: 10px;
        min-height: 56px;
    }
    
    .method-option .option-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .method-option .option-content h4 {
        font-size: 12px;
    }
    
    .method-option .option-content p {
        font-size: 10px;
    }
    
    /* Identity Options */
    .identity-option {
        padding: 14px;
        gap: 10px;
        min-height: 64px;
    }
    
    .option-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .option-content h3 {
        font-size: 13px;
    }
    
    .option-content p {
        font-size: 11px;
    }
    
    /* Scanner Area */
    .scanner-area {
        margin: 16px 0;
        padding: 20px 12px;
    }
    
    .scanner-circle {
        width: 60px;
        height: 60px;
        margin-bottom: 12px;
    }
    
    .scanner-circle i {
        font-size: 24px;
    }
    
    .scanner-area p {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .progress-container {
        width: 160px;
    }
    
    /* QR Code Area */
    .qr-area {
        margin: 16px 0;
        padding: 16px 12px;
    }
    
    .qr-code {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
    
    .qr-container p {
        font-size: 12px;
    }
    
    .qr-instructions {
        font-size: 10px !important;
    }
    
    /* Info Box */
    .info-box {
        padding: 12px;
        gap: 8px;
    }
    
    .info-box i {
        font-size: 12px;
    }
    
    .info-box h4 {
        font-size: 12px;
    }
    
    .info-box p {
        font-size: 11px;
    }
    
    /* Buttons */
    .btn-primary {
        padding: 12px 16px;
        font-size: 14px;
        min-height: 44px;
    }
    
    /* Footer */
    .login-footer {
        margin-top: 16px;
        font-size: 12px;
    }
    
    /* Modal */
    .modal-content {
        padding: 24px 16px;
        margin: 16px;
    }
    
    .success-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .modal-content h2 {
        font-size: 16px;
    }
    
    .modal-content p {
        font-size: 12px;
        margin-bottom: 16px;
    }
}

@media (max-width: 360px) {
    .brand-section {
        padding: 20px 8px;
        min-height: 140px;
    }
    
    .login-section {
        padding: 8px;
        padding-top: 12px;
    }
    
    .brand-content h1 {
        font-size: 20px;
    }
    
    .brand-content p {
        font-size: 12px;
    }
    
    .logo-image {
        width: 60px;
        height: 60px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .logo-motto {
        font-size: 9px;
        max-width: 160px;
    }
    
    /* Access Selector */
    .access-tab {
        padding: 8px 10px;
        font-size: 11px;
        min-height: 36px;
    }
    
    .access-tab i {
        font-size: 11px;
    }
    
    /* Content Headers */
    .content-header h2 {
        font-size: 16px;
    }
    
    .content-header p {
        font-size: 12px;
    }
    
    /* Method Options */
    .method-option {
        padding: 10px;
        min-height: 52px;
    }
    
    .method-option .option-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .method-option .option-content h4 {
        font-size: 11px;
    }
    
    .method-option .option-content p {
        font-size: 9px;
    }
    
    /* Identity Options */
    .identity-option {
        padding: 12px;
        min-height: 60px;
    }
    
    .option-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .option-content h3 {
        font-size: 12px;
    }
    
    .option-content p {
        font-size: 10px;
    }
    
    /* Scanner Area */
    .scanner-circle {
        width: 50px;
        height: 50px;
    }
    
    .scanner-circle i {
        font-size: 20px;
    }
    
    .scanner-area p {
        font-size: 12px;
    }
    
    .progress-container {
        width: 140px;
    }
    
    /* QR Code Area */
    .qr-code {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    .qr-container p {
        font-size: 11px;
    }
    
    .qr-instructions {
        font-size: 9px !important;
    }
    
    /* Info Box */
    .info-box {
        padding: 10px;
    }
    
    .info-box h4 {
        font-size: 11px;
    }
    
    .info-box p {
        font-size: 10px;
    }
    
    /* Buttons */
    .btn-primary {
        padding: 10px 14px;
        font-size: 13px;
        min-height: 40px;
    }
    
    /* Footer */
    .login-footer {
        font-size: 11px;
    }
    
    /* Modal */
    .modal-content {
        padding: 20px 12px;
        margin: 12px;
    }
    
    .success-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .modal-content h2 {
        font-size: 14px;
    }
    
    .modal-content p {
        font-size: 11px;
    }
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .method-option:hover,
    .identity-option:hover,
    .access-tab:hover,
    .alt-btn:hover,
    .btn-primary:hover {
        transform: none;
        box-shadow: none;
    }
    
    .method-option:active,
    .identity-option:active,
    .access-tab:active,
    .alt-btn:active,
    .btn-primary:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Increase touch targets */
    .access-tab,
    .method-option,
    .identity-option,
    .alt-btn,
    .btn-primary {
        min-height: 44px;
    }
    
    .option-icon {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .brand-section {
        min-height: 120px;
        padding: 20px 16px;
    }
    
    .login-section {
        padding-top: 10px;
    }
    
    .logo-image {
        width: 60px;
        height: 60px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .logo-motto {
        font-size: 10px;
    }
    
    .brand-content h1 {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .brand-content p {
        font-size: 12px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .scanner-circle,
    .qr-code,
    .option-icon,
    .method-option .option-icon {
        border-width: 1px;
    }
} 

.email-form {
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8eaed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #ffffff;
}

.form-group input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-group input::placeholder {
    color: #9aa0a6;
} 

.biometric-info {
    font-size: 14px;
    color: #5f6368;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
} 

/* Biometric Sections */
.biometric-section {
    margin-bottom: 32px;
}

.biometric-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8eaed;
}

/* QR Code Area */
.qr-area {
    text-align: center;
    margin: 24px 0;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 16px;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.qr-code {
    width: 150px;
    height: 150px;
    background: #ffffff;
    border: 2px solid #e8eaed;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: #5f6368;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-container p {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    margin: 0;
}

.qr-instructions {
    font-size: 12px !important;
    color: #5f6368 !important;
    font-weight: 400 !important;
    line-height: 1.4;
    text-align: center;
} 

/* Mobile-specific improvements */
@media (max-width: 768px) {
    /* Prevent horizontal scrolling */
    body {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Improve touch targets */
    .method-option,
    .identity-option,
    .access-tab,
    .btn-primary {
        -webkit-tap-highlight-color: rgba(26, 115, 232, 0.1);
        touch-action: manipulation;
    }
    
    /* Better scrolling for mobile */
    .login-section {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Improve text readability on mobile */
    .method-option .option-content h4,
    .identity-option .option-content h3,
    .content-header h2 {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Better spacing for mobile keyboards */
    .login-card {
        padding-bottom: 20px;
    }
    
    /* Improve modal positioning on mobile */
    .success-modal {
        padding: 20px;
        align-items: flex-start;
        padding-top: 10vh;
    }
    
    .modal-content {
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Prevent zoom on input focus for iOS */
@media (max-width: 768px) {
    .form-group input {
        font-size: 16px;
    }
}

/* Dark mode support for mobile */
@media (prefers-color-scheme: dark) {
    .brand-section {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }
    
    .brand-section::before {
        background: linear-gradient(135deg, rgba(26, 115, 232, 0.1) 0%, rgba(66, 133, 244, 0.1) 100%);
    }
    
    .brand-content h1,
    .content-header h2,
    .method-option .option-content h4,
    .identity-option .option-content h3 {
        color: #ffffff;
    }
    
    .brand-content p,
    .content-header p,
    .method-option .option-content p,
    .identity-option .option-content p,
    .scanner-area p,
    .qr-container p,
    .info-box p,
    .login-footer {
        color: #b0b0b0;
    }
    
    .method-option,
    .identity-option {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .method-option:hover,
    .identity-option:hover {
        border-color: #1a73e8;
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }
    
    .scanner-area,
    .qr-area {
        background: #2d2d2d;
    }
    
    .scanner-circle,
    .qr-code {
        background: #1a1a1a;
        border-color: #404040;
    }
    
    .info-box {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        border-color: #404040;
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
    /* Ensure sufficient color contrast */
    .method-option .option-content p,
    .identity-option .option-content p,
    .info-box p {
        color: #666666;
    }
    
    /* Improve focus indicators for touch devices */
    .method-option:focus,
    .identity-option:focus,
    .access-tab:focus,
    .btn-primary:focus {
        outline: 2px solid #1a73e8;
        outline-offset: 2px;
    }
    
    /* Better visual feedback for active states */
    .method-option:active,
    .identity-option:active,
    .access-tab:active,
    .btn-primary:active {
        background-color: rgba(26, 115, 232, 0.1);
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .method-option,
    .identity-option,
    .access-tab,
    .btn-primary,
    .scanner-circle,
    .progress-fill {
        transition: none;
        animation: none;
    }
    
    .scanner-circle.scanning {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .method-option,
    .identity-option {
        border-width: 2px;
    }
    
    .btn-primary {
        border: 2px solid #ffffff;
    }
    
    .scanner-circle,
    .qr-code {
        border-width: 2px;
    }
}

/* Welcome page styles */
.welcome-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.welcome-header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.welcome-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.welcome-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.welcome-logo img {
    width: 40px;
    height: 40px;
}

.welcome-logo span {
    font-size: 24px;
    font-weight: 700;
    color: #1a73e8;
}

.welcome-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.welcome-btn {
    padding: 10px 20px;
    border: 2px solid #1a73e8;
    border-radius: 8px;
    background: white;
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.welcome-btn:hover {
    background: #1a73e8;
    color: white;
}

.welcome-btn.primary {
    background: #1a73e8;
    color: white;
}

.welcome-btn.primary:hover {
    background: #174ea6;
}

.welcome-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.welcome-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 600px;
    width: 100%;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #34a853 0%, #2d8e47 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 32px;
}

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    color: #202124;
    margin-bottom: 16px;
}

.welcome-message {
    font-size: 16px;
    color: #5f6368;
    margin-bottom: 32px;
    line-height: 1.6;
}

.welcome-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.welcome-option {
    padding: 24px;
    border: 2px solid #e8eaed;
    border-radius: 12px;
    text-decoration: none;
    color: #202124;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.welcome-option:hover {
    border-color: #1a73e8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.15);
}

.welcome-option i {
    font-size: 24px;
    color: #1a73e8;
}

.welcome-option h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.welcome-option p {
    font-size: 14px;
    color: #5f6368;
    margin: 0;
    text-align: center;
}

.welcome-footer {
    text-align: center;
    color: #5f6368;
    font-size: 14px;
}

@media (max-width: 768px) {
    .welcome-nav {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .welcome-card {
        padding: 24px;
        margin: 20px;
    }
    
    .welcome-title {
        font-size: 24px;
    }
    
    .welcome-options {
        grid-template-columns: 1fr;
    }
} 