/* STEP 6: Login CSS - No Scroll Layout */

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

html,
body {
    height: auto;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e9f5ff 100%);
}

.login-container {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: auto;
    min-width: 500px
}

/* Image Section */
.login-image-section {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.login-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.4) 0%, rgba(32, 201, 151, 0.3) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 30px 20px;
}

.login-image-text {
    color: white;
    text-align: center;
}

.login-image-text h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-image-text p {
    font-size: 14px;
    opacity: 0.95;
}

/* Form Section */
.login-form-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    overflow-y: visible;
    max-height: none;
}

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

.login-logo {
    font-size: 32px;
    color: #28a745;
    margin-bottom: 12px;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 14px;
    color: #64748b;
}

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

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

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: #28a745;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Password toggle */
.password-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    margin-top: 6px;
}

.password-toggle:hover {
    color: #28a745;
}

/* Form options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0 16px;
    font-size: 13px;
}

.remember-check {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.remember-check input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #28a745;
}

/* Buttons */
.btn-login {
    width: 100%;
    padding: 11px 16px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(40, 167, 69, 0.25);
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
}

.alert-danger {
    background-color: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

.alert-success {
    background-color: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

/* Social Buttons */
.divider {
    text-align: center;
    margin: 15px 0;
    font-size: 12px;
    color: #94a3b8;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.social-btn {
    padding: 10px;
    border: 1.5px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    color: #64748b;
}

.social-btn:hover {
    border-color: #28a745;
    color: #28a745;
    background: #f8fafc;
    transform: translateY(-2px);
}

.google-btn {
    background-color: #4285f4;
    color: white;
    border: none;
}

.google-btn:hover {
    background-color: #357ae8;
    color: white;
    border-color: #357ae8;
}

/* Footer */
.login-footer {
    text-align: center;
    font-size: 12px;
    color: #64748b;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.login-footer a {
    color: #28a745;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .login-card {
        grid-template-columns: 1fr;
    }

    .login-image-section {
        display: none;
    }

    .login-card {
        max-width: 420px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .login-card {
        min-width: auto;
    }

    .login-form-section {
        padding: 28px 20px;
    }

    .login-title {
        font-size: 20px;
    }

    .social-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .login-card {
        min-width: auto;
    }

    .login-container {
        padding: 12px;
    }

    .login-form-section {
        padding: 20px 16px;
    }

    .login-title {
        font-size: 18px;
    }
}