﻿/* =========================================================
PROJECT: Walanda platform
FILE: login.css
PATH: /src/modules/auth/css/login.css
MODULE: auth
SCOPE: styling (global / component / page)
PURPOSE: styles the reference Walanda login and password recovery pages
AUTHOR: Simasiku Nasilele
STANDARD: Walanda pro ui system
VERSION: 1.0.0
LAST UPDATED: 2026
========================================================= */
/* =========================================================
SECTION: variables
DESCRIPTION: root variables and theme tokens
========================================================= */

:root {
    --walanda-auth-surface: rgba(255, 255, 255, 0.92);
    --walanda-auth-shadow: 0 24px 64px rgba(22, 42, 46, 0.12);
    --walanda-auth-border: rgba(255, 255, 255, 0.58);
    --walanda-auth-primary: #1fa78a;
    --walanda-auth-primary-hover: #168f77;
    --walanda-auth-muted: #617273;
    --walanda-auth-danger: #b42318;
    --walanda-auth-success: #067647;
}


/* =========================================================
SECTION: reset
DESCRIPTION: base resets and normalization
========================================================= */

.login-wrapper *,
.login-wrapper *::before,
.login-wrapper *::after {
    box-sizing: border-box;
}


/* =========================================================
SECTION: layout
DESCRIPTION: global layout structure
========================================================= */

.login-wrapper {
    position: relative;
    min-height: calc(100vh - 160px);
    overflow: hidden;
    background: linear-gradient(180deg, #f4f7f8 0%, #eef6f4 100%);
}

.login-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(244, 247, 248, 0.18) 0%, rgba(244, 247, 248, 0.88) 76%, #f4f7f8 100%),
        url("../../../../assets/images/hero/hero-2.png") center/cover no-repeat;
    transform: scale(1.03);
}

.login-content {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}

.login-card {
    width: min(100%, 440px);
    padding: 40px;
    border: 1px solid var(--walanda-auth-border);
    border-radius: 18px;
    background: var(--walanda-auth-surface);
    backdrop-filter: blur(12px);
    box-shadow: var(--walanda-auth-shadow);
}


/* =========================================================
SECTION: components
DESCRIPTION: reusable ui components (cards, buttons)
========================================================= */

.login-card h2 {
    margin: 0 0 8px;
    color: var(--walanda-auth-primary);
    text-align: center;
    font-size: clamp(1.85rem, 2vw, 2.2rem);
    line-height: 1.1;
}

.login-sub {
    max-width: 310px;
    margin: 0 auto 24px;
    text-align: center;
    color: var(--walanda-auth-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-field span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #274748;
}

.login-field input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d5e0df;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.98);
    color: #1f2d2d;
    font-size: 0.95rem;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.login-field input:focus {
    outline: none;
    border-color: var(--walanda-auth-primary);
    box-shadow: 0 0 0 4px rgba(31, 167, 138, 0.12);
}

.password-input-wrap {
    position: relative;
    display: block;
}

.password-input-wrap input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: #6b7d7d;
    cursor: pointer;
    transition: color 140ms ease, background 140ms ease;
}

.password-toggle:hover,
.password-toggle:focus {
    color: var(--walanda-auth-primary);
    background: rgba(31, 167, 138, 0.08);
    outline: none;
}

.password-toggle[aria-pressed="true"] {
    color: var(--walanda-auth-primary);
}

.forgot-password {
    display: flex;
    justify-content: flex-end;
}

.forgot-password a,
.login-register-link a {
    color: var(--walanda-auth-primary);
    font-weight: 600;
    text-decoration: none;
}

.forgot-password a:hover,
.login-register-link a:hover {
    color: var(--walanda-auth-primary-hover);
}

.btn-primary {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    border: none;
    border-radius: 10px;
    background: var(--walanda-auth-primary);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
    box-shadow: 0 14px 28px rgba(31, 167, 138, 0.24);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    background: var(--walanda-auth-primary-hover);
    box-shadow: 0 18px 32px rgba(31, 167, 138, 0.3);
}

.btn-primary:disabled {
    cursor: wait;
    opacity: 0.82;
}

.login-status {
    min-height: 1.25rem;
    margin: 0;
    text-align: center;
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--walanda-auth-muted);
}

.login-status.is-error {
    color: var(--walanda-auth-danger);
}

.login-status.is-success {
    color: var(--walanda-auth-success);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 18px;
    color: var(--walanda-auth-muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d8e4e1;
}

.google-login {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid #d5e0df;
    border-radius: 10px;
    background: #ffffff;
    color: #324849;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    opacity: 1;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.google-login:hover {
    border-color: var(--walanda-auth-primary);
    background: rgba(31, 167, 138, 0.05);
}

.google-login:focus-visible {
    outline: none;
    border-color: var(--walanda-auth-primary);
    box-shadow: 0 0 0 3px rgba(31, 167, 138, 0.22);
}

.login-note,
.login-register-link {
    margin: 18px 0 0;
    text-align: center;
    color: var(--walanda-auth-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}


/* =========================================================
SECTION: pages
DESCRIPTION: page-specific styles
========================================================= */

.password-recovery-card {
    text-align: center;
}

.password-recovery-card .login-sub {
    margin-bottom: 20px;
}


/* =========================================================
SECTION: responsive
DESCRIPTION: media queries and breakpoints
========================================================= */

@media (max-width: 720px) {
    .login-content {
        padding: 32px 16px;
    }

    .login-card {
        padding: 28px 22px;
        border-radius: 16px;
    }
}
/* =========================================================
END OF FILE
FILE: login.css
PATH: /src/modules/auth/css/login.css
MODULE: auth
STATUS: stable
MAINTAINED BY: Walanda core system
COPYRIGHT: © 2026 Walanda Inc. Ltd. All rights reserved.
========================================================= */

