/* ============================================
   ORBIT LOGIN PAGE STYLES
   File: orbit-login.css
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 440px;
    padding: 48px 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: left;
    animation: fadeIn 0.5s ease;
    position: relative;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    font-weight: 300;
}

.logo-section h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

/* Heading */
h2 {
    text-align: center;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 28px;
    color: #1a202c;
}

.subtitle {
    text-align: center;
    color: #718096;
    font-size: 15px;
    margin-bottom: 32px;
}

/* Form */
#loginForm {
    width: 100%;
}

/* Labels */
label {
    display: block;
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #2d3748;
    font-weight: 600;
}

/* Input Fields */
input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    outline: none;
    font-size: 15px;
    background: #f7fafc;
    color: #2d3748;
    transition: all 0.3s ease;
}

input:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

input::placeholder {
    color: #999;
}

/* Error state for inputs */
input.error {
    border-color: #ff4d4d;
    background: #ffe6e6;
}

/* Login Button */
button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    margin-top: 28px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Loading state for button */
button.loading {
    color: transparent;
}

button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4aa8ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message Box */
.error-message {
    background: #ff4d4d;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    display: none;
    text-align: center;
    font-size: 14px;
    animation: shake 0.5s ease;
}

.error-message.show {
    display: block;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Success Message */
.success-message {
    background: #4CAF50;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.success-message.show {
    display: block;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        width: 90%;
        padding: 20px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .logo-box {
        width: 100px;
        height: 140px;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

.loading-content {
    background: white;
    padding: 30px 50px;
    border-radius: 10px;
    text-align: center;
    color: #333;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4aa8ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

/* Sign Up Link */
.signup-link {
    text-align: center;
    margin-top: 24px;
    color: #718096;
    font-size: 14px;
}

.signup-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Forgot Password Link */
.forgot-password {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
}

.forgot-password a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Google Button */
.google-btn {
    width: 100%;
    padding: 14px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
    margin-bottom: 24px;
}

.google-btn:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.google-btn i {
    font-size: 20px;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #a0aec0;
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    padding: 0 16px;
}