/* Professional Corporate CSS for the login page - Envelope Data Extraction System */

/* Reset all default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Main body styling */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #1e293b;
}

/* Main login container */
.login-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 48px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.login-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Company logo styling */
.company-logo {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.company-logo img {
    filter: drop-shadow(0 4px 8px rgba(30, 64, 175, 0.2));
    transition: transform 0.2s ease;
}

.company-logo img:hover {
    transform: scale(1.05);
}

/* Logo/icon styling */
.login-icon {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-icon svg {
    filter: drop-shadow(0 4px 8px rgba(30, 64, 175, 0.2));
}

/* Main heading */
.login-title {
    color: #1e293b;
    font-size: 2rem;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Subtitle text */
.login-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 32px;
    font-weight: 400;
    line-height: 1.5;
}

/* Form styling */
.login-form {
    text-align: left;
}

/* Form field container */
.form-group {
    margin-bottom: 24px;
}

/* Labels for form fields */
.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

/* Input field styling */
.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
    color: #1f2937;
}

/* Focus state for input fields */
.form-group input:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
    transform: translateY(-1px);
}

/* Login button styling */
.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

/* Hover effect for login button */
.login-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.4);
}

/* Active state for login button */
.login-btn:active {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    transform: translateY(0);
}

/* Error message styling */
.error-message {
    background: #fef2f2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #fecaca;
    font-size: 0.875rem;
    display: none;
    border-left: 4px solid #dc2626;
}

/* Success message styling */
.success-message {
    background: #f0fdf4;
    color: #166534;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #bbf7d0;
    font-size: 0.875rem;
    display: none;
    border-left: 4px solid #22c55e;
}

/* Loading spinner styling */
.loading {
    display: none;
    text-align: center;
    margin: 20px 0;
}

/* Spinner animation */
.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #1e40af;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

/* Spinner rotation animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Demo credentials section */
.demo-credentials {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    border: 1px solid #e5e7eb;
}

/* Demo credentials heading */
.demo-credentials h4 {
    color: #374151;
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 600;
}

/* Demo credentials text */
.demo-credentials p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 8px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

/* Responsive design for smaller screens */
@media (max-width: 480px) {
    .login-container {
        padding: 32px 24px;
        margin: 10px;
        border-radius: 12px;
    }
    
    .login-title {
        font-size: 1.75rem;
    }
    
    .form-group input {
        padding: 12px 14px;
    }
    
    .login-btn {
        padding: 12px 16px;
    }
} 