* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html,
body {
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 21px;
}

/* body{
        background:var(--bg);
        color:#111827;
        -webkit-font-smoothing:antialiased;
        -moz-osx-font-smoothing:grayscale;
        display:flex;
        justify-content:center;
        align-items:flex-start;
        padding:48px 16px;
        line-height:1.4;
    } */

/* Page container */
main {
    width: 100%;
    max-width: 980px;
    height: -webkit-fill-available;
}

/* Outer container for login area */
.loginDiv {
    display: flex;
    gap: var(--gap);
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    flex-direction: column;
    height: -webkit-fill-available;
}

/* Card with the form */
.loginForm {
    background: var(--color);
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.08);
    padding: 28px;
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform .18s ease, box-shadow .18s ease;
}
#resetForm ,#passwordForm{    
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform .18s ease, box-shadow .18s ease;
}
.loginForm:focus-within,
.loginForm:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.12)
}

/* Title block */
.tit h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #0f172a;
}

.tit p {
    font-size: 13px;
    color: var(--muted);
}

/* Inputs */
.inputDiv {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.inputDiv label {
    font-size: 13px;
    color: var(--muted);
}

.inputDiv input {
    height: 44px;
    padding: 10px 12px;
    border: 1px solid #e6e9ef;
    border-radius: 10px;
    background: transparent;
    font-size: 14px;
    outline: none;
    transition: box-shadow .12s ease, border-color .12s ease;
}

.inputDiv input::placeholder {
    color: #bfc6d3
}

.inputDiv input:focus {
    border-color: var(--accent);
    box-shadow: 0 4px 18px rgba(43, 124, 255, 0.12);
}

/* Hidden native form actions area is replaced by button below */
#SignIn {
    display: block;
}

/* Footer and links */
.loginFooter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.loginFooter a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.loginFooter a:hover {
    text-decoration: underline
}

/* Primary action button */
.loginForm button.act1 {
    width: 100%;
    appearance: none;
    border: 0;
    background: var(--accent);
    color: white;
    height: 48px;
    border-radius: 10px;
    padding: 0 18px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    align-self: flex-start;
    transition: transform .08s ease, box-shadow .12s ease, opacity .12s ease;
}

button.act1:active {
    transform: translateY(1px)
}

button.act1:disabled {
    opacity: .6;
    cursor: not-allowed
}

/* Google Sign-in wrapper */
.googleSignIn {
    margin-top: 6px;
    display: inline-block;
    vertical-align: middle;
}

.g_id_signin {
    margin-top: 6px;
    display: inline-block;
    vertical-align: middle
}

/* Response panel (hidden by default) */
.loginResponse {
    /* width:340px; */
    /* max-width:38%; */
    /* min-height: 160px; */
    background: var(--act2);
    border-radius: 10px;
    padding: 20px;
    display: none;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    transition: opacity .18s ease, transform .18s ease;
    align-items: center;
}

/* Hide by default; show via JS by removing this class or changing style */
.loginResponse[hidden],
#loginResponse[hidden] {
    display: none
}

/* Icons container */
.ico {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.03);
    color: var(--muted);
}

#ok {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success)
}

#wrongPassword {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger)
}

#wrongEmail {
    background: rgba(245, 158, 11, 0.08);
    color: var(--warning)
}

#NoUsr {
    background: rgba(43, 124, 255, 0.08);
    color: var(--accent)
}

/* Response text */
#hello {
    font-size: 16px;
    font-weight: 700;
    color: var(--htext);
}

#message {
    font-size: 13px;
    color: var(--muted);
    margin-top: -4px;
}

/* Small screens */
@media (max-width:920px) {
    .loginDiv {
        flex-direction: column;
        align-items: center
    }

    .loginResponse {
        width: 100%;
        max-width: 520px;
        margin-left: 0
    }

    .loginForm {
        max-width: 720px
    }
}

/* Utility */
.hidden {
    display: none !important
}

.center {
    display: flex;
    align-items: center;
    justify-content: center
}