/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ===== Compact Login Styles ===== */
.login-container-compact {
    min-height: 90vh;
    padding: 1rem 0;
}

.login-content-compact {
    max-width: 420px;
    padding: 1rem;
}

.login-header-compact {
    margin-bottom: 1.5rem;
    text-align: center;
}

.brand-compact {
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.brand-compact i {
    font-size: 2rem;
}

    .brand-compact h3 {
        font-size: 1.75rem;
        font-weight: 700;
        margin: 0;
        color: #495057;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

.login-header-compact h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #495057;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.login-header-compact p {
    font-size: 0.875rem;
    color: #495057;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.login-form-container-compact {
    padding: 1.5rem;
    border-radius: 0.75rem;
}

.login-form-compact {
    margin-bottom: 1rem;
}

.form-group-compact {
    margin-bottom: 1rem;
}

.form-label-compact {
    font-weight: 600;
    color: #2c3e50 !important;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.input-group-compact {
    border-radius: 0.5rem;
}

.input-group-compact .form-control {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.input-group-compact .btn {
    padding: 0.5rem 0.75rem;
}

.btn-compact {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.alert-compact {
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.access-info-compact {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.access-info-compact h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2c3e50 !important;
    margin-bottom: 1rem;
    text-align: center;
}

.access-grid-compact {
    display: grid;
    gap: 0.75rem;
}

.access-level-compact {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.access-level-compact:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.access-icon-compact {
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.access-icon-compact i {
    font-size: 0.875rem;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.access-details-compact h6 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2c3e50 !important;
    margin-bottom: 0.125rem;
    text-align: left;
}

.access-details-compact p {
    font-size: 0.75rem;
    color: #6c757d !important;
    margin-bottom: 0.5rem;
}

.access-capabilities-compact {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    font-size: 0.7rem;
    color: #495057 !important;
}

.access-capabilities-compact span {
    color: #495057 !important;
    font-size: 0.7rem;
}

.access-capabilities-compact i {
    color: #18bc9c !important;
    margin-right: 0.375rem;
    font-size: 0.7rem;
}

/* Mobile compact adjustments */
@media (max-width: 768px) {
    .login-content-compact {
        max-width: 380px;
        padding: 0.75rem;
    }
    
    .login-form-container-compact {
        padding: 1.25rem;
    }
    
    .brand-compact h3 {
        font-size: 1.875rem;
    }
    
    .login-header-compact h5 {
        font-size: 1.4rem;
    }
    
    .login-header-compact p {
        font-size: 1rem;
    }
    
    .form-label-compact {
        font-size: 1rem;
    }
    
    .input-group-compact .form-control {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .input-group-compact .btn {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .btn-compact {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }
    
    .alert-compact {
        font-size: 1rem;
        padding: 0.75rem 1rem;
        line-height: 1.6;
    }
    
    .access-info-compact h6 {
        font-size: 1rem;
    }
    
    .access-details-compact h6 {
        font-size: 0.95rem;
    }
    
    .access-details-compact p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .access-capabilities-compact {
        font-size: 0.85rem;
    }
    
    .access-capabilities-compact span {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Original login styles mobile improvements */
    .brand h1 {
        font-size: 2.2rem !important;
    }
    
    .login-header h2 {
        font-size: 1.6rem !important;
    }
    
    .login-header p {
        font-size: 1.1rem !important;
    }
    
    .form-label {
        font-size: 1rem !important;
    }
    
    .input-group .form-control {
        font-size: 1rem !important;
        padding: 0.8rem 1rem !important;
    }
    
    .input-group .btn {
        font-size: 1rem !important;
        padding: 0.8rem 1rem !important;
    }
    
    .access-info h6 {
        font-size: 1.1rem !important;
    }
    
    .access-details h6 {
        font-size: 1rem !important;
    }
    
    .access-details p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    .access-capabilities {
        font-size: 0.9rem !important;
    }
    
    .access-capabilities span {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
}

@media (max-width: 576px) {
    .login-content-compact {
        padding: 0.5rem;
        max-width: 340px;
    }

    .login-form-container-compact {
        padding: 1rem;
    }

    .brand-compact {
        flex-direction: column;
        gap: 0.25rem;
    }

    .brand-compact h3 {
        font-size: 1.8rem;
    }

    .login-header-compact h5 {
        font-size: 1.3rem;
    }

    .login-header-compact p {
        font-size: 1.1rem;
    }

    .form-label-compact {
        font-size: 1.1rem;
    }

    .input-group-compact .form-control {
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
    }

    .btn-compact {
        font-size: 1.1rem;
        padding: 0.9rem 1.3rem;
        min-height: 44px; /* iOS recommended touch target */
    }

    .alert-compact {
        font-size: 1.1rem;
        line-height: 1.7;
    }

    .access-info-compact h6 {
        font-size: 1.1rem;
    }

    .access-details-compact h6 {
        font-size: 1rem;
    }

    .access-details-compact p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .access-capabilities-compact {
        font-size: 0.9rem;
    }
    
    /* Original login styles for extra small screens */
    .brand h1 {
        font-size: 2rem !important;
    }
    
    .login-header h2 {
        font-size: 1.5rem !important;
    }
    
    .login-header p {
        font-size: 1.2rem !important;
    }
    
    .form-label {
        font-size: 1.1rem !important;
    }
    
    .input-group .form-control {
        font-size: 1.1rem !important;
        padding: 0.9rem 1rem !important;
    }
    
    .input-group .btn {
        font-size: 1.1rem !important;
        padding: 0.9rem 1rem !important;
        min-height: 44px !important;
    }
    
    .access-details h6 {
        font-size: 1.1rem !important;
    }
    
    .access-details p {
        font-size: 1rem !important;
        line-height: 1.7 !important;
    }
    
    .access-capabilities span {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    /* Improve login form container padding for small screens */
    .login-form-container-compact {
        padding: 1.5rem !important;
    }
    
    .login-form-container {
        padding: 2rem !important;
    }
}

/* ===== Original Login Styles ===== */

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.login-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
}

.login-header {
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand i {
    font-size: 3rem;
    color: #495057;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

    .brand h1 {
        font-family: var(--font-family-heading);
        font-size: 2.5rem;
        font-weight: 700;
        margin: 0;
        color: #495057;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

.login-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.login-header p {
    font-size: 1rem;
    color: #495057;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.login-form-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.login-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    font-weight: 600;
    color: #2c3e50 !important;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.input-group {
    display: flex;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: #2c3e50 !important;
    background-color: #ffffff !important;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
    padding: 0.875rem 1rem;
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #495057 !important;
}

.input-group .btn:hover {
    background: #e9ecef;
    color: #2c3e50 !important;
}

.form-control.is-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.15);
}

.access-info {
    border-top: 1px solid #e9ecef;
    padding-top: 2rem;
}

.access-info h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50 !important;
    margin-bottom: 1.5rem;
    text-align: center;
}

.access-grid {
    display: grid;
    gap: 1.5rem;
}

.access-level {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: var(--radius-lg);
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.access-level:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.access-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.access-icon.viewer {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.access-icon.admin {
    background: linear-gradient(135deg, #18bc9c, #f39c12);
}

.access-icon i {
    font-size: 1.25rem;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.access-details h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50 !important;
    margin-bottom: 0.25rem;
    text-align: left;
}

.access-details p {
    font-size: 0.875rem;
    color: #6c757d !important;
    margin-bottom: 0.75rem;
}

.access-capabilities {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #495057 !important;
}

.access-capabilities span {
    color: #495057 !important;
}

.access-capabilities i {
    color: #18bc9c !important;
    margin-right: 0.5rem;
    font-size: 0.75rem;
}

/* Alert styling fixes */
.alert {
    color: #721c24 !important;
}

.alert-danger {
    background-color: #f8d7da !important;
    border-color: #f5c2c7 !important;
    color: #721c24 !important;
}

.alert-danger i {
    color: #721c24 !important;
}

/* Button styling fixes */
.btn-primary {
    background-color: #2c3e50 !important;
    border-color: #2c3e50 !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #1a252f !important;
    border-color: #1a252f !important;
    color: #ffffff !important;
}

.btn-outline-secondary {
    color: #6c757d !important;
    border-color: #6c757d !important;
    background-color: transparent !important;
}

.btn-outline-secondary:hover {
    color: #ffffff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

@media (max-width: 576px) {
    .login-content {
        padding: 1rem;
    }

    .login-form-container {
        padding: 1.5rem;
    }

    .brand {
        flex-direction: column;
        gap: 0.5rem;
    }

    .brand h1 {
        font-size: 2rem;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }

    .access-level {
        flex-direction: column;
        text-align: center;
    }

    .access-icon {
        align-self: center;
    }
}

/* Enhanced Mobile Font Sizes for Login Page */
@media (max-width: 768px) {
    /* Login page mobile font improvements */
    .login-container-compact .brand-compact h3 {
        font-size: 2rem !important;
    }
    
    .login-header-compact h5 {
        font-size: 1.4rem !important;
    }
    
    .login-header-compact p {
        font-size: 1rem !important;
    }
    
    .form-label-compact {
        font-size: 1rem !important;
    }
    
    .input-group-compact .form-control {
        font-size: 1rem !important;
        padding: 0.75rem 1rem !important;
    }
    
    .btn-compact {
        font-size: 1rem !important;
        padding: 0.8rem 1.2rem !important;
    }
    
    .alert-compact {
        font-size: 1rem !important;
        padding: 0.75rem 1rem !important;
        line-height: 1.6 !important;
    }
    
    .access-info-compact h6 {
        font-size: 1rem !important;
    }
    
    .access-details-compact h6 {
        font-size: 0.95rem !important;
    }
    
    .access-details-compact p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }
    
    .access-capabilities-compact {
        font-size: 0.85rem !important;
    }
    
    .access-capabilities-compact span {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }
    
    /* Original login styles mobile improvements */
    .brand h1 {
        font-size: 2.2rem !important;
    }
    
    .login-header h2 {
        font-size: 1.6rem !important;
    }
    
    .login-header p {
        font-size: 1.1rem !important;
    }
    
    .form-label {
        font-size: 1rem !important;
    }
    
    .input-group .form-control {
        font-size: 1rem !important;
        padding: 0.8rem 1rem !important;
    }
    
    .input-group .btn {
        font-size: 1rem !important;
        padding: 0.8rem 1rem !important;
    }
    
    .access-info h6 {
        font-size: 1.1rem !important;
    }
    
    .access-details h6 {
        font-size: 1rem !important;
    }
    
    .access-details p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    .access-capabilities {
        font-size: 0.9rem !important;
    }
    
    .access-capabilities span {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
}

@media (max-width: 576px) {
    /* Extra small screen improvements for login page */
    .login-container-compact .brand-compact h3 {
        font-size: 1.8rem !important;
    }
    
    .login-header-compact h5 {
        font-size: 1.3rem !important;
    }
    
    .login-header-compact p {
        font-size: 1.1rem !important;
    }
    
    .form-label-compact {
        font-size: 1.1rem !important;
    }
    
    .input-group-compact .form-control {
        font-size: 1.1rem !important;
        padding: 0.8rem 1rem !important;
    }
    
    .btn-compact {
        font-size: 1.1rem !important;
        padding: 0.9rem 1.3rem !important;
        min-height: 44px !important; /* iOS recommended touch target */
    }
    
    .alert-compact {
        font-size: 1.1rem !important;
        line-height: 1.7 !important;
    }
    
    .access-info-compact h6 {
        font-size: 1.1rem !important;
    }
    
    .access-details-compact h6 {
        font-size: 1rem !important;
    }
    
    .access-details-compact p {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
    }
    
    .access-capabilities-compact {
        font-size: 0.9rem !important;
    }
}