:root {
    --bg: #f5f7fb;
    --card-bg: #ffffff;
    --text: #172033;
    --muted: #6b7280;
    --border: #dbe2ea;
    --primary: #19b37d;
    --primary-hover: #14956a;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: Inter, Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fb 0%, #edf2f7 100%);
    color: var(--text);
}

body.auth-page {
    min-height: 100vh;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px 32px;
    border: 1px solid rgba(219, 226, 234, 0.7);
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: rgba(25, 179, 125, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.auth-title {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 700;
}

.auth-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.form-input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 14px;
    font-size: 15px;
    outline: none;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(25, 179, 125, 0.12);
}

.auth-error {
    background: #fff1f2;
    color: #b42318;
    border: 1px solid #fecdd3;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
}

.auth-button {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

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

.auth-button:active {
    transform: translateY(1px);
}

@media (max-width: 520px) {
    .auth-card {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .auth-title {
        font-size: 26px;
    }
}