:root {
    --primary-color: #8e44ad;
    --secondary-color: #9b59b6;
    --accent-color: #e67e22;
    --text-color: #34495e;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Base */
body {
    font-family: 'Poppins', sans-serif;
    background: #f6f7fb;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.auth-container {
    width: 100%;
    padding: 10px;
}

/* Card */
.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    max-width: 420px; /* 👈 compact width */
    margin: auto;
    overflow: hidden;
}

/* Header */
.auth-header {
    background: var(--gradient);
    color: #fff;
    text-align: center;
    padding: 1.4rem 1rem;
    position: relative;
}

.auth-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.auth-header p {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Decorative */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
}

.circle-1 {
    width: 110px;
    height: 110px;
    background: #fff;
    top: -40px;
    right: -40px;
}

.circle-2 {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    bottom: -30px;
    left: -30px;
}

/* Body */
.auth-body {
    padding: 1.6rem 1.5rem;
}

/* Inputs */
.form-control {
    border-radius: 8px;
    font-size: 0.9rem;
    padding: 0.6rem 0.9rem;
    border: 1px solid #ddd;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.15rem rgba(142, 68, 173, 0.25);
}

/* Forgot password */
.forgot-password {
    text-align: right;
    margin-bottom: 0.8rem;
}

.forgot-password a {
    font-size: 0.75rem;
    color: #888;
    text-decoration: none;
}

.forgot-password a:hover {
    color: var(--primary-color);
}

/* Button */
.btn-submit {
    width: 100%;
    background: var(--gradient);
    color: #fff;
    border: none;
    padding: 0.6rem;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(142, 68, 173, 0.35);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: #999;
    margin: 1.2rem 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.divider::before {
    margin-right: 0.7rem;
}

.divider::after {
    margin-left: 0.7rem;
}

/* Social login */
.social-login {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: all 0.3s ease;
}

.social-btn.google:hover {
    background: #db4437;
    color: #fff;
    border-color: #db4437;
}

/* Footer */
.auth-footer {
    text-align: center;
    font-size: 0.8rem;
    color: #777;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

/* Mobile */
@media (max-width: 576px) {
    .auth-card {
        max-width: 100%;
    }
}
