/* App-Style Auth Pages Design - Shared CSS */
.app-login-container-compact {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile browsers */
    width: 100vw;
    width: 100dvw; /* Dynamic viewport width for mobile browsers */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    margin: 0;
    overflow: hidden;
    z-index: 1000;
    box-sizing: border-box;
}

.app-login-card {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    width: 100%;
    max-width: 380px;
    max-height: 90vh;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.app-login-header {
    text-align: center;
    margin-bottom: 20px;
}

.punchline {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 15px 0 8px 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.punchline-subtitle {
    font-size: 12px;
    color: #666;
    letter-spacing: 2px;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    font-weight: 400;
}

.tagline {
    font-size: 15px;
    color: #667eea;
    font-weight: 700;
    margin: 0 0 20px 0;
    letter-spacing: 1px;
}

.app-logo-image {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.zelmu-logo-img {
    max-width: 150px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.app-form-header {
    text-align: center;
    margin-bottom: 20px;
}

.app-form-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.app-form-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.app-alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.app-alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.app-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.social-login-section {
    margin-bottom: 20px;
}

.join-now-text {
    text-align: center;
    font-size: 14px;
    color: #333;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.app-social-login {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.app-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.app-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.app-social-btn i {
    font-size: 20px;
    margin: 0;
}

.app-social-google {
    color: #db4437;
    border-color: #db4437;
}

.app-social-google:hover {
    background: #db4437;
    color: white;
}

/* Google button with text (full width button) */
.app-social-btn-full,
.app-social-btn[style*="width: 100%"],
.app-social-btn.app-social-google[style*="width: 100%"] {
    width: 100% !important;
    max-width: 100%;
    padding: 12px 16px;
    height: auto;
    min-height: 48px;
}

.app-social-btn span {
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.app-social-facebook {
    color: #1877f2;
    border-color: #1877f2;
}

.app-social-facebook:hover {
    background: #1877f2;
    color: white;
}

.app-social-discord {
    color: #5865f2;
    border-color: #5865f2;
}

.app-social-discord:hover {
    background: #5865f2;
    color: white;
}

.app-social-instagram {
    color: #E4405F;
    border-color: #E4405F;
}

.app-social-instagram:hover {
    background: #E4405F;
    border-color: #E4405F;
    color: white;
}

.app-social-apple {
    color: #000000;
    border-color: #000000;
    background: #000000;
}

.app-social-apple:hover {
    background: #1d1d1d;
    border-color: #1d1d1d;
    color: white;
}

.app-social-apple i {
    color: white;
}

.app-social-vk {
    color: #4680C2;
    border-color: #4680C2;
}

.app-social-vk:hover {
    background: #4680C2;
    color: white;
    border-color: #4680C2;
}

.app-social-vk i {
    display: none;
}

.app-social-vk span {
    font-family: Arial, sans-serif;
}


.app-social-vk:hover span {
    color: white;
}

.app-social-tiktok {
    color: #000000;
    border-color: #000000;
}

.app-social-tiktok:hover {
    background: #000000;
    color: white;
}

.app-divider {
    text-align: center;
    margin: 18px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
    z-index: 1;
}

.app-divider span {
    background: white;
    padding: 0 20px;
    color: #666;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

.app-login-form {
    margin-bottom: 20px;
}

.app-form-group {
    margin-bottom: 15px;
}

.app-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.app-form-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.app-form-input.app-form-error {
    border-color: #dc3545;
}

.app-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.app-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.app-checkbox input {
    margin-right: 8px;
}

.app-checkbox-terms {
    font-size: 10px;
    line-height: 1.3;
    white-space: nowrap;
    margin-bottom: 15px;
}

.app-checkbox-terms input[type="checkbox"] {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin-right: 6px;
}

.app-checkbox-terms .terms-text {
    font-size: 10px;
    color: #666;
    display: inline;
    white-space: nowrap;
}

.app-checkbox-terms .terms-text a {
    color: #667eea;
    text-decoration: none;
    font-size: 10px;
    white-space: nowrap;
}

.app-checkbox-terms .terms-text a:hover {
    text-decoration: underline;
}

.app-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.app-link:hover {
    text-decoration: underline;
}

.app-login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.app-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.app-login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.app-signup-link {
    text-align: center;
    margin-bottom: 20px;
}

.app-signup-link p {
    color: #666;
    margin: 0;
}

.app-signup-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.app-signup-link a:hover {
    text-decoration: underline;
}

.app-copyright {
    text-align: center;
    margin-top: 20px;
    padding-top: 0;
}

.app-copyright p {
    font-size: 11px;
    color: #999;
    margin: 0;
    font-weight: 400;
}

.app-copyright a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}

.app-copyright a:hover {
    color: #667eea;
    text-decoration: underline;
}

/* Prevent body and main content scroll for logged-out users */
body.hide-nav-bars {
    overflow: hidden !important;
    height: 100vh !important;
    position: fixed;
    width: 100%;
}

body.hide-nav-bars .main-content.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
    position: relative;
}

body.hide-nav-bars .main-container {
    height: 100%;
    overflow: hidden;
}

/* Mobile Responsive - Very Small Screens */
@media (max-width: 375px) {
    .app-login-container-compact {
        padding: 8px;
    }
    
    .app-login-card {
        padding: 1rem;
        border-radius: 12px;
        max-width: 100%;
        max-height: 98vh;
    }
    
    .app-login-header {
        margin-bottom: 0.75rem;
    }
    
    .punchline {
        font-size: 1.125rem;
        margin: 0.5rem 0 0.25rem 0;
    }
    
    .punchline-subtitle {
        font-size: 0.5625rem;
        letter-spacing: 0.5px;
        margin: 0 0 0.5rem 0;
    }
    
    .tagline {
        font-size: 12px;
        margin: 0 0 15px 0;
    }
    
    .zelmu-logo-img {
        max-width: 100px;
    }
    
    .join-now-text {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .app-social-login {
        gap: 8px;
    }
    
    .app-social-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    
    .app-social-btn i {
        font-size: 16px;
    }
    
    /* Full width Google button on small screens */
    .app-social-btn-full,
    .app-social-btn[style*="width: 100%"],
    .app-social-btn.app-social-google[style*="width: 100%"] {
        padding: 10px 12px;
        min-height: 44px;
        max-width: 100% !important;
    }
    
    .app-social-btn span {
        font-size: 13px;
    }
    
    .app-form-input {
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    .app-form-options {
        margin-bottom: 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .app-checkbox {
        font-size: 12px;
    }
    
    .app-link {
        font-size: 12px;
    }
    
    .app-login-btn {
        padding: 11px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    .app-alert {
        padding: 10px 12px;
        font-size: 12px;
        border-radius: 8px;
    }
    
    .app-copyright {
        margin-top: 15px;
    }
    
    .app-copyright p {
        font-size: 9px;
    }
    
    .app-copyright a {
        font-size: 9px;
    }
}

/* Small phones (376px-480px) */
@media (min-width: 376px) and (max-width: 480px) {
    .app-login-container-compact {
        padding: 12px;
    }
    
    .app-login-card {
        padding: 1.25rem;
        border-radius: 12px;
        max-width: 100%;
        max-height: 96vh;
    }
    
    .punchline {
        font-size: 1.25rem;
        margin: 0.5rem 0 0.25rem 0;
    }
    
    .punchline-subtitle {
        font-size: 0.625rem;
        letter-spacing: 1px;
        margin: 0 0 0.75rem 0;
    }
    
    .tagline {
        font-size: 13px;
        letter-spacing: 0.5px;
        margin: 0 0 18px 0;
    }
    
    .zelmu-logo-img {
        max-width: 120px;
    }
    
    .join-now-text {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .app-social-login {
        gap: 10px;
    }
    
    .app-social-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .app-social-btn i {
        font-size: 18px;
    }
    
    /* Full width Google button */
    .app-social-btn-full,
    .app-social-btn[style*="width: 100%"],
    .app-social-btn.app-social-google[style*="width: 100%"] {
        padding: 11px 14px;
        min-height: 46px;
        max-width: 100% !important;
    }
    
    .app-social-btn span {
        font-size: 14px;
    }
    
    .app-form-input {
        padding: 11px 14px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .app-form-options {
        margin-bottom: 14px;
    }
    
    .app-checkbox {
        font-size: 13px;
    }
    
    .app-link {
        font-size: 13px;
    }
    
    .app-login-btn {
        padding: 12px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .app-alert {
        padding: 11px 14px;
        font-size: 13px;
    }
    
    .app-copyright {
        margin-top: 18px;
    }
    
    .app-copyright p {
        font-size: 10px;
    }
    
    .app-copyright a {
        font-size: 10px;
    }
}

/* Larger phones (481px-767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .app-login-container-compact {
        padding: 15px;
    }
    
    .app-login-card {
        padding: 1.5rem;
        border-radius: 16px;
        max-width: 420px;
    }
}

