/* Login Page Styles - Page-specific styles for login page */

/* Login-specific body styles */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Login container */
.login-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Login card */
.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

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

.app-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.title-highlight {
    color: #1976d2;
}

/* Logo styling to match text dimensions */
.app-logo {
    max-height: 34px;
    max-width: 216px;
    height: 34px;
    width: auto;
    display: block;
    margin: 0 auto 8px auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

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

/* Form styles */
.login-form {
    width: 100%;
}

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

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

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #b3d9ff;
}

.form-input::placeholder {
    color: #999;
}

/* Login button */
.login-button {
    width: 100%;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-bottom: 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-button:hover {
    background: #1565c0;
}

.login-button:active {
    transform: translateY(1px);
}

.login-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.login-button.loading:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 20px 0 !important;
}

.button-text {
    display: inline-block;
}

.button-spinner {
    display: none;
}

.login-button.loading .button-text {
    display: none !important;
}

.login-button.loading .button-spinner {
    display: inline-block !important;
}

.spinner {
    width: 20px;
    height: 20px;
    color: white;
}

/* Error message */
.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 16px;
    border-left: 4px solid #c62828;
}

/* Security notice */
.security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-top: 24px;
}

.security-icon {
    width: 16px;
    height: 16px;
    color: #28a745;
    margin-right: 8px;
    flex-shrink: 0;
}

.security-text {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 480px) {
    body {
        padding: 16px;
    }

    .login-card {
        padding: 32px 24px;
    }

    .form-input {
        padding: 14px 16px;
    }

    .login-button {
        padding: 16px;
        font-size: 16px;
    }
}

/* Focus styles for accessibility */
.form-input:focus,
.login-button:focus {
    outline: none;
}

/* Animation for smooth transitions */
.login-card {
    animation: fadeInUp 0.5s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state animation - uses spin from utilities/animations.css */
.spinner circle {
    animation: spin 1s linear infinite;
}