﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Vazirmatn", sans-serif;
    background: radial-gradient( circle at top right, rgba(22, 79, 66, 0.08), transparent 35% ), #f4f6f5;
    color: #14201d;
    min-height: 100vh;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border: 1px solid rgba(7, 26, 47, 0.07);
    border-radius: 22px;
    padding: 42px;
    box-shadow: 0 20px 60px rgba(7, 26, 47, 0.09);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 42px;
}

.logo-icon {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #071a2f;
    color: #ffffff;
    border-radius: 12px;
    font-size: 25px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

    .logo-text span {
        font-size: 21px;
        font-weight: 800;
        color: #071a2f;
    }

    .logo-text small {
        margin-top: 4px;
        font-size: 10px;
        color: #75817d;
    }

.auth-header {
    margin-bottom: 30px;
}

    .auth-header h1 {
        color: #071a2f;
        font-size: 29px;
        font-weight: 800;
        letter-spacing: -0.5px;
        margin-bottom: 9px;
    }

    .auth-header p {
        color: #75817d;
        font-size: 14px;
        line-height: 1.9;
    }

.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: #14201d;
        margin-bottom: 8px;
    }

.phone-input {
    height: 52px;
    display: flex;
    align-items: center;
    direction: ltr;
    border: 1px solid #dce4e1;
    border-radius: 11px;
    background: #fafcfb;
    overflow: hidden;
    transition: 0.2s ease;
}

    .phone-input:focus-within {
        border-color: #164f42;
        box-shadow: 0 0 0 3px rgba(22, 79, 66, 0.09);
    }

.country-code {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 14px;
    color: #75817d;
    font-size: 14px;
    border-right: 1px solid #dce4e1;
    background: #f4f7f6;
    white-space: nowrap;
}

.phone-input input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 15px;
    font-family: "Vazirmatn", sans-serif;
    font-size: 15px;
    color: #14201d;
}

input::placeholder {
    color: #a5afac;
}

.code-group {
    margin-top: 25px;
}

.code-input {
    width: 100%;
    height: 52px;
    border: 1px solid #dce4e1;
    border-radius: 11px;
    background: #fafcfb;
    outline: none;
    padding: 0 18px;
    font-family: "Vazirmatn", sans-serif;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 5px;
    text-align: center;
    transition: 0.2s ease;
}

    .code-input:focus {
        border-color: #164f42;
        box-shadow: 0 0 0 3px rgba(22, 79, 66, 0.09);
    }

    .code-input::placeholder {
        font-size: 13px;
        font-weight: 400;
        letter-spacing: 0;
        color: #a5afac;
    }

.code-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 9px;
    font-size: 11px;
    color: #75817d;
}

.resend-btn {
    border: none;
    background: none;
    color: #164f42;
    font-family: "Vazirmatn", sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

    .resend-btn:hover {
        color: #1d6655;
        text-decoration: underline;
    }

.btn {
    width: 100%;
    height: 52px;
    border-radius: 11px;
    font-family: "Vazirmatn", sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-secondary {
    background: #e9f1ee;
    border: 1px solid #d9e7e2;
    color: #164f42;
}

    .btn-secondary:hover {
        background: #dfece7;
    }

.btn-primary {
    margin-top: 10px;
    background: #071a2f;
    border: 1px solid #071a2f;
    color: #ffffff;
    box-shadow: 0 7px 18px rgba(7, 26, 47, 0.14);
}

    .btn-primary:hover {
        background: #0d2742;
        transform: translateY(-1px);
        box-shadow: 0 9px 22px rgba(7, 26, 47, 0.18);
    }

.btn:active {
    transform: translateY(0);
}

.terms {
    margin-top: 25px;
    text-align: center;
    color: #929c99;
    font-size: 10px;
    line-height: 2;
}

    .terms a {
        color: #66736e;
        text-decoration: underline;
    }

@media (max-width: 500px) {
    .auth-page {
        padding: 20px 14px;
        align-items: flex-start;
        padding-top: 45px;
    }

    .auth-card {
        padding: 30px 22px;
        border-radius: 18px;
        box-shadow: 0 12px 35px rgba(7, 26, 47, 0.07);
    }

    .logo {
        margin-bottom: 35px;
    }

    .auth-header h1 {
        font-size: 26px;
    }

    .auth-header p {
        font-size: 13px;
    }
}
