/* ============================================================
   Login Page — Memorly.AI Style
   ============================================================ */

.login-form {
    --auth-control-height: 42px;
    --auth-control-bg: #f5f5f7;
}

/* === Social Auth Container === */
.login-form .social-auth-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-bottom: 0.25rem;
}

.login-form .social-auth-row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
}

/* === Right panel (hidden — single-column layout) === */
.form--container--right {
    display: none !important;
}

/* === Card top / title area === */
.top {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
    margin: 0 0 1.5rem;
}

.header-title {
    color: #0d0d12;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
}

.header-subtitle {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 400;
    margin: 0;
}

/* === Form Groups === */
.login-form .form-group {
    margin-bottom: 18px;
    text-align: left;
}

.login-form .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: #374151;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.login-form .form-group input,
.login-form .form-group input.textfield {
    width: 100%;
    height: var(--auth-control-height) !important;
    min-height: var(--auth-control-height);
    padding: 0 12px;
    font-size: 13.5px;
    border: 1px solid #e0e0e6;
    border-radius: 8px;
    box-sizing: border-box;
    line-height: calc(var(--auth-control-height) - 2px);
    background: var(--auth-control-bg) !important;
    background-color: var(--auth-control-bg) !important;
    background-image: none !important;
    color: #111827;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 0;
}

.login-form .form-group input:focus,
.login-form .form-group input.textfield:focus,
.login-form .form-group input.textfield:focus-visible {
    outline: none;
    background: var(--auth-control-bg) !important;
    background-color: var(--auth-control-bg) !important;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.login-form .form-group input:-webkit-autofill,
.login-form .form-group input:-webkit-autofill:hover,
.login-form .form-group input:-webkit-autofill:focus,
.login-form .form-group input:-webkit-autofill:active,
.login-form .form-group input.textfield:-webkit-autofill,
.login-form .form-group input.textfield:-webkit-autofill:hover,
.login-form .form-group input.textfield:-webkit-autofill:focus,
.login-form .form-group input.textfield:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--auth-control-bg) inset !important;
    box-shadow: 0 0 0 1000px var(--auth-control-bg) inset !important;
    -webkit-text-fill-color: #111827 !important;
    caret-color: #111827;
    background-color: var(--auth-control-bg) !important;
    border: 1px solid #7c3aed;
    transition: background-color 9999s ease-out 0s;
}

.login-form form {
    width: 100%;
}

/* === Password Row === */
.password-field-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.password-input-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.password-toggle-button {
    width: var(--auth-control-height);
    height: var(--auth-control-height);
    min-height: var(--auth-control-height);
    flex: 0 0 var(--auth-control-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #e0e0e6;
    border-radius: 8px;
    box-sizing: border-box;
    background: var(--auth-control-bg);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.password-toggle-button:hover {
    background: #ede9ff;
    border-color: #7c3aed;
}

.password-toggle-button:focus-visible {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

/* === Login Button === */
.login-button {
    background: #7c3aed;
    color: #ffffff;
    width: 100%;
    padding: 0.72rem 0;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.30);
}

.login-button:hover {
    background: #6d28d9;
    box-shadow: 0 6px 18px rgba(109, 40, 217, 0.38);
    transform: translateY(-1px);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.20);
}

/* === Divider === */
.login-form .divider--with--text {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 0;
}

.login-form .right--border,
.login-form .left--border {
    border-top: 1px solid #e5e7eb;
    flex-grow: 1;
}

.login-form .divider--text {
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 12px;
    white-space: nowrap;
}

/* === Links Row === */
.login-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 10px 0 18px;
    flex-wrap: wrap;
}

.login-form .login-links .signup-link {
    margin-top: 0;
    text-align: left;
}

.login-form .login-links .signup-link p {
    margin: 0;
}

.login-form .signup-link {
    font-size: 13px;
    color: #4b5563;
}

.login-form .signup-link a {
    color: #111827;
    text-decoration: none;
    font-weight: 700;
}

.login-form .signup-link a:hover {
    color: #7c3aed;
}

.forgot-password-link {
    text-align: right;
    display: flex;
    justify-content: flex-end;
}

.login-links .forgot-password-link {
    margin: 0;
}

.forgot-password-link a {
    color: #6b7280;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.forgot-password-link a:hover {
    color: #7c3aed;
}

/* === Google Button === */
.google-login-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 10px;
    padding: 11px 0;
    border: 1px solid #e0e0e6;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    width: 100%;
    justify-content: center;
    align-self: center;
    margin: 0;
}

.google-login-card img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.google-login-card span {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.google-login-card:hover {
    background: #fafafa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.google-login-card:active {
    transform: translateY(0);
    box-shadow: none;
}
