/* Modern & Minimalist Auth Styles */

:root {
    --auth-bg: #f8fafc;
    --auth-card-bg: #ffffff;
    --primary: #6366f1; /* Indigo */
    --primary-hover: #4f46e5;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --input-border: #e2e8f0;
    --input-focus: #6366f1;
    --radius: 12px;
}

body.form-membership {
    background: radial-gradient(circle at top left, #f8fafc, #f1f5f9) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
}

.form-wrapper {
    max-width: 100%;
    text-align: left !important;
    width: 520px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.auth-card {
    background: var(--auth-card-bg);
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    transition: transform 0.3s ease;
}

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

.auth-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 15px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--input-border);
    padding: 12px 16px;
    font-size: 15px;
    background-color: #fcfcfd;
    transition: all 0.2s ease;
    height: auto !important;
}

.form-control:focus {
    outline: none;
    border-color: var(--input-focus);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.btn-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 24px;
    background-color: var(--primary);
    color: white !important;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.btn-modern:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-modern:active {
    transform: translateY(0);
}

.auth-links {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
}

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

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

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--input-border);
}

.divider:not(:empty)::before {
    margin-right: .75em;
}

.divider:not(:empty)::after {
    margin-left: .75em;
}

.alert {
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 24px;
}

.logo-top {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.logo-bottom {
    display: none;
    justify-content: center;
    margin-top: 32px;
}

.logo-container img {
    height: 48px;
    width: auto;
}

/* Specific for password show button */
.btn-pass-show {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-pass-show:hover {
    color: var(--text-main);
}

/* Help text for register */
.help-card {
    background-color: #f8fafc;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    color: var(--text-muted);
}

.help-card i {
    color: var(--primary);
    margin-right: 6px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .auth-card {
        padding: 24px;
    }
    .logo-top {
        display: none;
    }
    .logo-bottom {
        display: flex;
    }
}
