@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --success: #00b686;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body {
    font-family: "Inter", sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
}

/* Auth Pages Styling */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(circle at top right, #e0f2fe, transparent 40%),
        radial-gradient(circle at bottom left, #ecfdf5, transparent 40%),
        #f8fafc;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow);
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo h2 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.auth-logo h2 span {
    color: var(--primary);
}

.auth-logo p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 6px;
    margin-bottom: 0;
}

/* Custom form styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
    outline: none;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.btn-auth {
    width: 100%;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-auth:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
}

.auth-actions__meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
}

.auth-link {
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.auth-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.auth-link span {
    color: var(--primary);
    font-weight: 600;
}

.auth-submit {
    width: 90px;
    height: 40px;
    margin-left: 0;
    white-space: nowrap;
    background: var(--primary);
    color: var(--bg-body);
    font-weight: 500;
    text-decoration: none;
    font-size: 13px;
    border-radius: 10px;
    border: none;
    transition: ease 0.4s;
}

.auth-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    cursor: pointer;
}

.error-message {
    font-size: 12px;
    color: #ff4d4f;
    margin-top: 6px;
    display: block;
}

@media (max-width: 480px) {
    .auth-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .auth-actions__meta {
        width: 100%;
        justify-content: center;
    }

    .auth-submit {
        width: 100%;
    }
}
