/* Styles for accounts/login.html.
   Moved out of the template's inline <style> block into this static file so the browser downloads it
   once and caches it (an inline block was re-sent inside the HTML on every visit). Linked from the
   template's {% block page_css %}, which base.html places in <head> after its own CSS - the same
   cascade order the inline block had. */

.auth-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}
.auth-card {
    background: var(--ym-card);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 900px;
    display: flex;
    overflow: hidden;
}
.auth-form-side {
    padding: 60px 50px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-image-side {
    flex: 1;
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.9)), url("../../../images/three-students-like.2a6ec2443ca5.webp") center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: white;
    text-align: center;
}

.form-control {
    background-color: var(--ym-fill);
    border: 2px solid var(--ym-edge);
    padding: 14px 20px;
    font-weight: 600;
    transition: 0.3s;
    font-size: 1.1rem;
}
.form-control:focus {
    background-color: var(--ym-card);
    border-color: var(--ym-blue);
    box-shadow: none;
}
.input-group-text {
    background-color: var(--ym-fill);
    border: 2px solid var(--ym-edge);
    color: var(--ym-muted);
}

.is-invalid, .is-invalid:focus {
    border-color: var(--ym-red) !important;
    background-color: var(--ym-paper);
}
.input-group:has(.is-invalid) .input-group-text {
    border-color: var(--ym-red);
    background-color: var(--ym-paper);
    color: var(--ym-red);
}

.auth-btn {
    background: linear-gradient(135deg, var(--ym-navy-2), var(--ym-navy-2));
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 10px;
    padding: 14px;
    border: none;
    transition: 0.3s;
    width: 100%;
}
.auth-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(44, 62, 80, 0.3);
    color: white;
}
.auth-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}
.form-label {
    font-weight: 700;
    color: var(--ym-ink-2);
    margin-bottom: 8px;
}

.password-wrapper { position: relative; width: 100%; }
.password-toggle {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--ym-subtle);
    transition: 0.2s;
    z-index: 10;
    display: none;
}
.password-toggle:hover { color: var(--ym-body); }

.remember-container {
    display: flex;
    align-items: center;
}
.remember-container input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    margin: 0 0 0 8px !important;
}
.remember-container label {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ym-body);
    cursor: pointer;
}

@media (max-width: 992px) {
    .auth-image-side { display: none; }
    .auth-form-side { padding: 40px 20px; }
}
