* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #18181b;
    background: #fafafa;
}

body {
    min-height: 100vh;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 70px 20px 40px;
}

.auth-wrapper {
    width: 100%;
    max-width: 440px;
    text-align: center;
}

.auth-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 24px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #09090b;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
}

.auth-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-header {
    margin-bottom: 30px;
}

.auth-header h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -0.7px;
}

.auth-header p {
    margin: 10px 0 0;
    color: #71717a;
    font-size: 15px;
}

.auth-card {
    width: 100%;
    padding: 28px;
    text-align: left;
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 13px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.025);
}

.google-button {
    width: 100%;
    height: 48px;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    background: #ffffff;
    color: #27272a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 550;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.google-button:hover {
    background: #fafafa;
    border-color: #a1a1aa;
}

.google-button svg {
    width: 19px;
    height: 19px;
}

.google-button svg path:nth-child(1) {
    fill: #4285f4;
}

.google-button svg path:nth-child(2) {
    fill: #34a853;
}

.google-button svg path:nth-child(3) {
    fill: #fbbc05;
}

.google-button svg path:nth-child(4) {
    fill: #ea4335;
}

.divider {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 25px 0;
}

.divider span {
    height: 1px;
    flex: 1;
    background: #e4e4e7;
}

.divider small {
    color: #a1a1aa;
    font-size: 11px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #27272a;
    font-size: 13px;
    font-weight: 600;
}

.password-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.password-label label {
    margin-bottom: 8px;
}

.password-label a {
    margin-bottom: 8px;
    color: #52525b;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}

.password-label a:hover {
    text-decoration: underline;
}

.input-wrapper {
    position: relative;
}

.input-wrapper svg {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    fill: none;
    stroke: #a1a1aa;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    height: 47px;
    padding: 0 14px 0 43px;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: #18181b;
    font-size: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-wrapper input::placeholder {
    color: #a1a1aa;
}

.input-wrapper input:focus {
    border-color: #18181b;
    box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.08);
}

.primary-button {
    width: 100%;
    height: 48px;
    margin-top: 4px;
    border: 0;
    border-radius: 8px;
    background: #09090b;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 650;
    transition: transform 0.1s ease, background 0.15s ease;
}

.primary-button:hover {
    background: #27272a;
}

.primary-button:active {
    transform: scale(0.995);
}

.auth-footer {
    margin: 25px 0 0;
    color: #71717a;
    font-size: 13px;
}

.auth-footer a {
    margin-left: 4px;
    color: #18181b;
    font-weight: 650;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 520px) {
    .auth-page {
        padding: 42px 16px 30px;
    }

    .auth-wrapper {
        max-width: 100%;
    }

    .auth-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 20px;
    }

    .auth-header {
        margin-bottom: 25px;
    }

    .auth-header h1 {
        font-size: 26px;
    }

    .auth-card {
        padding: 22px 18px;
    }
}

@media (max-width: 350px) {
    .auth-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .auth-card {
        padding-left: 15px;
        padding-right: 15px;
    }

    .password-label {
        gap: 10px;
    }
}
