/* Modern Minimalistic Login Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    color: #1a1a1a;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Alert Styles */
.alert-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

.alert {
    margin: 0;
    padding: 1rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
}

.alert-danger {
    background-color: #fee;
    color: #dc3545;
    border-bottom: 1px solid #fcc;
}

.alert-warning {
    background-color: #fffbf0;
    color: #856404;
    border-bottom: 1px solid #ffe8a1;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-bottom: 1px solid #a7f3d0;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Login Container */
.login-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Image Section (Left Side) */
.image-section {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.6));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.overlay-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.overlay-text {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 400;
    max-width: 500px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Form Section (Right Side) */
.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    padding: 2rem;
}

.form-container {
    width: 100%;
    max-width: 400px;
}

/* Logo */
.logo-container {
    margin-bottom: 2.5rem;
    text-align: center;
}

.logo-container a {
    display: inline-block;
    transition: transform 0.2s ease;
}

.logo-container a:hover {
    transform: scale(1.05);
}

.logo {
    max-width: 280px;
    height: auto;
}

/* Form Title */
.form-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #6c757d;
    margin-bottom: 2rem;
    text-align: center;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #344054;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    color: #1a1a1a;
    background-color: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    transition: all 0.2s ease;
    -webkit-appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: #4eb8dd;
    box-shadow: 0 0 0 3px rgba(78, 184, 221, 0.1);
}

.form-input::placeholder {
    color: #98a2b3;
}

/* Form Options (Remember me & Forgot password) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    margin-top: -0.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remember-me input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    cursor: pointer;
}

.remember-label {
    font-size: 0.875rem;
    color: #344054;
    cursor: pointer;
    user-select: none;
}

.forgot-link {
    font-size: 0.875rem;
    color: #4eb8dd;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #3aa8cd;
    text-decoration: underline;
}

/* Submit Button */
.submit-button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #4eb8dd;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.submit-button:hover {
    background-color: #3aa8cd;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(78, 184, 221, 0.25);
}

.submit-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(78, 184, 221, 0.25);
}

.submit-button:disabled {
    background-color: #98a2b3;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    
    .image-section {
        height: 30vh;
        min-height: 200px;
    }
    
    .overlay-title {
        font-size: 1.75rem;
    }
    
    .overlay-text {
        font-size: 1rem;
    }
    
    .form-section {
        flex: 1;
        padding: 1.5rem;
    }
    
    .logo {
        max-width: 180px;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .form-subtitle {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .image-section {
        height: 25vh;
        min-height: 150px;
    }
    
    .overlay-title {
        font-size: 1.5rem;
    }
    
    .overlay-text {
        display: none;
    }
    
    .form-container {
        max-width: 100%;
    }
    
    .logo {
        max-width: 160px;
    }
    
    .logo-container {
        margin-bottom: 2rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .remember-me {
        order: 2;
    }
    
    .forgot-link {
        order: 1;
        align-self: flex-end;
    }
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e5e7eb;
    transform: translateY(-50%);
}

.divider span {
    position: relative;
    padding: 0 1rem;
    background-color: #ffffff;
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Google Sign-In Button */
.google-button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #3c4043;
    background-color: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.google-button:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.google-button:active {
    background-color: #e8eaed;
}

.google-button svg {
    flex-shrink: 0;
}

/* Back to login link */
.back-to-login {
    text-align: center;
    margin-top: 2rem;
}

.back-link {
    font-size: 0.875rem;
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #4eb8dd;
}

/* Additional styles for better UX */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}