/* Modern Login Page Styles - Verkada Inspired */

.login-page {
    min-height: 100vh;
    background: var(--bg-secondary, #fafafa);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.login-language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.language-select {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, #edebe9);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-primary, #323130);
    cursor: pointer;
    transition: all var(--transition-base, 200ms ease);
    box-shadow: var(--shadow-sm, 0 1.6px 3.6px 0 rgba(0, 0, 0, 0.13));
}

.language-select:hover {
    background: var(--bg-hover, #f5f5f5);
    border-color: var(--border-hover, #c8c6c4);
}

.login-container {
    width: 100%;
    max-width: 380px;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    background: var(--bg-card, #ffffff);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-md, 0 3.2px 7.2px 0 rgba(0, 0, 0, 0.13));
    border: 1px solid var(--border-color, #edebe9);
}

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

.logo-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.logo-icon-large {
    width: 48px;
    height: 48px;
    background: var(--primary, #0078d4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 600;
    box-shadow: var(--shadow-sm, 0 1.6px 3.6px 0 rgba(0, 0, 0, 0.13));
}

.login-header h1 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.login-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: all var(--transition-base);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary, #0078d4);
    box-shadow: 0 0 0 2px var(--primary-light, rgba(0, 120, 212, 0.1));
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Modern Sign In Button */
.btn-login-primary {
    width: 100%;
    padding: 11px 20px;
    background: var(--primary, #0078d4);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base, 200ms ease);
    position: relative;
    overflow: hidden;
    margin-top: 4px;
    box-shadow: var(--shadow-sm, 0 1.6px 3.6px 0 rgba(0, 0, 0, 0.13));
}

.btn-login-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-login-primary:hover::before {
    left: 100%;
}

.btn-login-primary:hover {
    transform: translateY(-1px);
    background: var(--primary-hover, #106ebe);
    box-shadow: var(--shadow-md, 0 3.2px 7.2px 0 rgba(0, 0, 0, 0.13));
}

.btn-login-primary:active {
    transform: translateY(0);
}

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

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-arrow {
    transition: transform var(--transition-base);
}

.btn-login-primary:hover .btn-arrow {
    transform: translateX(4px);
}

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

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* WebAuthn Button with Animation */
.btn-webauthn {
    width: 100%;
    padding: 11px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.btn-webauthn:hover:not(:disabled) {
    border-color: var(--primary, #0078d4);
    background: var(--primary-light, rgba(0, 120, 212, 0.05));
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm, 0 1.6px 3.6px 0 rgba(0, 0, 0, 0.13));
}

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

.webauthn-icon-container {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.webauthn-icon {
    width: 100%;
    height: 100%;
    color: var(--text-primary, #323130);
    transition: all var(--transition-base, 200ms ease);
}

.btn-webauthn:hover:not(:disabled) .webauthn-icon {
    transform: scale(1.1);
    color: var(--primary, #0078d4);
}

.webauthn-text {
    position: relative;
    z-index: 1;
}

/* Error Message */
.error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 8px;
}

/* Footer */
.login-footer {
    margin-top: 20px;
    text-align: center;
}

.forgot-password-link {
    color: var(--primary, #0078d4);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-base, 200ms ease);
}

.forgot-password-link:hover {
    color: var(--primary-hover, #106ebe);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 24px 20px;
    }
    
    .login-language-selector {
        top: 10px;
        right: 10px;
    }
    
    .login-header {
        margin-bottom: 20px;
    }
}

