:root {
    --primary: #79C900;
    --primary-hover: #72bd02;
    --bg-main: #f8fafc;
    --bg-white: #ffffff;
    --bg-secondary: antiquewhite;
    --text-main: #1e293b;
    --text-muted: #94a3b8;
    --text-link: #0247a5;
    --border-light: #e2e8f0;
    --border-soft: #e0e0e0;
    --success: #2e7d32;
    --error: #d32f2f;
    --cart-green: #1f7a4d;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg-main);
}

.container-all {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.ctn-form,
.ctn-logo {
    flex: 1;
}

.ctn-form {
    padding: 70px;
    background: var(--bg-white);
}

.ctn-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-secondary);
}

.logo-img {
    width: 100%;
    height: auto;
}

.title-form,
.title-reg {
    font-size: 2rem;
    text-align: center;
    color: var(--text-main);
}

.title-form {
    margin-top: 50px;
}

.btn-wrapper {
    display: flex;
    justify-content: center;
}

form>label {
    display: block;
    margin-top: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    outline: none;
}

input:focus {
    border-color: var(--primary);
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-container input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--text-link);
}

.toggle-password svg {
    width: 20px;
    height: 20px;
}

.form-options {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 5px;
}

.remember input[type="checkbox"]:checked {
    accent-color: #72bd02;
}

.recover-text {
    font-size: 1rem;
    color: var(--primary);
    transition: all 0.3 ease-in-out;
}

.recover-text:hover {
    text-decoration: none;
    color: var(--primary-hover);
    transform: scale(1.01);
}

.btn-submit {
    width: 50%;
    height: 50px;
    margin-top: 30px;
    background: var(--primary);
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.btn-submit:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
}

.google-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.google-circle-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 1px solid var(--border-soft);
    background: var(--bg-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.google-circle-btn svg {
    width: 24px;
    height: 24px;
}

.google-circle-btn:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.google-circle-btn:active {
    transform: scale(0.95);
}

.text-footer,
.text-f {
    display: block;
    text-align: center;
}

.text-footer {
    margin-top: 70px;
}

.text-f {
    margin-top: 60px;
}

.password-message {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.password-message.success {
    color: var(--success);
}

.password-message.error {
    color: var(--error);
}

@media (min-width: 1025px) {
    .container-all {
        height: 100vh;
        overflow: hidden;
    }

    .form-options {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 15px;
    }

}

@media (max-width: 1024px) {

    .container-all {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: var(--bg-secondary);
        padding: 40px 20px;
        gap: 30px;
    }

    .ctn-logo {
        order: -1;
        background: transparent;
        height: auto;
    }

    .logo-img {
        width: clamp(180px, 30vw, 260px);
    }

    .ctn-form {
        width: clamp(320px, 92%, 700px);
        padding: clamp(25px, 4vw, 60px);
        border-radius: 20px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    }

    .title-form {
        margin-top: 0;
    }

    .text-footer {
        margin-top: 20px;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--primary);
    color: #000;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.cart {
    background-color: var(--cart-green);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
}