/**
 * HubEurope Login Page - BRAND COMPLIANT V2.0
 * Clean, professional design matching 2024 Brand Refresh
 */

/* ============================================================
 * BASE & BODY
 * ============================================================ */
body {
    background: #F9FAFB;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle brand accent pattern */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 68, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 106, 38, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* ============================================================
 * LOGIN CONTAINER
 * ============================================================ */
.login-container {
    position: relative;
    z-index: 10;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 48px;
    width: 100%;
    max-width: 420px;
    box-shadow: 
        0 10px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ============================================================
 * HEADER
 * ============================================================ */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #FF4400, #FF6A26);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 16px rgba(255, 68, 0, 0.2),
        0 4px 8px rgba(255, 68, 0, 0.1);
}

.login-logo svg {
    width: 40px;
    height: 40px;
    color: white;
}

.login-title {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #191919;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.login-subtitle {
    font-size: 15px;
    color: #808080;
    margin: 0;
    font-weight: 500;
}

/* ============================================================
 * FORM
 * ============================================================ */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #333333;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: #FFFFFF;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    color: #333333;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #FF4400;
    box-shadow: 0 0 0 3px rgba(255, 68, 0, 0.1);
    background: #FFFFFF;
}

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

.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #9CA3AF;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #333333;
}

.password-toggle .eye-icon {
    width: 20px;
    height: 20px;
}

/* ============================================================
 * LOGIN BUTTON
 * ============================================================ */
.login-button {
    width: 100%;
    padding: 16px 24px;
    background: #FF4400;
    border: none;
    border-radius: 12px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 68, 0, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.login-button:hover {
    background: #FF6A26;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 68, 0, 0.3);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 68, 0, 0.2);
}

.login-button:focus-visible {
    outline: 2px solid #FF4400;
    outline-offset: 2px;
}

/* ============================================================
 * ERROR MESSAGE
 * ============================================================ */
.error-message {
    background: #FEE2E2;
    border: 1px solid #FCA5A5;
    border-radius: 10px;
    padding: 12px 16px;
    color: #991B1B;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}

/* ============================================================
 * FOOTER
 * ============================================================ */
.login-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #E5E7EB;
}

.login-footer p {
    color: #808080;
    font-size: 13px;
    margin: 0;
}

.login-footer a {
    color: #FF4400;
    text-decoration: none;
    font-weight: 600;
}

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

/* ============================================================
 * FORGOT PASSWORD LINK
 * ============================================================ */
.forgot-password {
    display: block;
    text-align: right;
    margin-top: 8px;
    font-size: 13px;
    color: #FF4400;
    text-decoration: none;
    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* ============================================================
 * RESPONSIVE
 * ============================================================ */
@media (max-width: 480px) {
    body {
        padding: 20px;
    }
    
    .login-container {
        padding: 32px 24px;
        border-radius: 16px;
    }
    
    .login-logo {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }
    
    .login-logo svg {
        width: 32px;
        height: 32px;
    }
    
    .login-title {
        font-size: 28px;
    }
    
    .login-subtitle {
        font-size: 14px;
    }
}

/* ============================================================
 * ACCESSIBILITY
 * ============================================================ */
*:focus-visible {
    outline: 2px solid #FF4400;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    body::before {
        animation: none !important;
    }
}

/* High contrast */
@media (prefers-contrast: high) {
    .login-container {
        border: 2px solid #333333;
    }
    
    .form-label,
    .login-subtitle,
    .login-footer p {
        color: #191919;
    }
    
    .form-input {
        border: 2px solid #333333;
    }
}

/* Selection */
::selection {
    background-color: rgba(255, 68, 0, 0.2);
    color: #191919;
}

::-moz-selection {
    background-color: rgba(255, 68, 0, 0.2);
    color: #191919;
}

/* ============================================================
 * LOADING STATE
 * ============================================================ */
.login-button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.login-button[disabled]:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(255, 68, 0, 0.25);
}

/* ============================================================
 * ADDITIONAL UTILITY CLASSES
 * ============================================================ */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 16px;
}

.mt-4 {
    margin-top: 16px;
}

/* Helper text */
.helper-text {
    font-size: 13px;
    color: #808080;
    margin-top: 8px;
}

/* Success message */
.success-message {
    background: #D1FAE5;
    border: 1px solid #6EE7B7;
    border-radius: 10px;
    padding: 12px 16px;
    color: #065F46;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}

/* Info message */
.info-message {
    background: #DBEAFE;
    border: 1px solid #93C5FD;
    border-radius: 10px;
    padding: 12px 16px;
    color: #1E40AF;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}