/* Modern Auth Page Styling */
.modern-auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    padding: 40px 20px;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Background Shapes */
.modern-auth-wrapper::before,
.modern-auth-wrapper::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    z-index: 0;
    opacity: 0.6;
}

.modern-auth-wrapper::before {
    top: -200px;
    left: -200px;
    background: radial-gradient(circle, rgba(66, 153, 225, 0.2) 0%, transparent 70%);
}

.modern-auth-wrapper::after {
    bottom: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(236, 201, 75, 0.15) 0%, transparent 70%);
}

.modern-auth-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 10;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

/* Header Section */
.auth-header {
    text-align: center;
    padding: 40px 40px 20px;
}

.auth-header h3 {
    font-size: 28px;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.auth-header p {
    color: #718096;
    font-size: 15px;
}

/* Tabs */
.auth-tabs-container {
    padding: 0 40px;
    margin-bottom: 30px;
}

.modern-tabs {
    display: flex;
    background: #f7fafc;
    padding: 5px;
    border-radius: 12px;
    position: relative;
}

.modern-tabs .nav-item {
    flex: 1;
    list-style: none;
    text-align: center;
    z-index: 1;
}

.modern-tabs .nav-link {
    display: block;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #718096;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
}

.modern-tabs .nav-link.active {
    background: #fff;
    color: #3182ce;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.modern-tabs .nav-link:hover:not(.active) {
    color: #4a5568;
    background: rgba(255, 255, 255, 0.5);
}

/* Form Content */
.auth-body {
    padding: 0 40px 40px;
}

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

.modern-form .form-control {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    color: #2d3748;
    background: #f8fafc;
    border: 2px solid #edf2f7;
    border-radius: 14px;
    transition: all 0.3s ease;
}

.modern-form .form-control:focus {
    background: #fff;
    border-color: #3182ce;
    box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.1);
    outline: none;
}

.modern-form .form-control::placeholder {
    color: #a0aec0;
}

/* Checkbox */
.custom-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    cursor: pointer;
}

.custom-check input {
    width: 18px;
    height: 18px;
    accent-color: #3182ce;
    cursor: pointer;
}

.custom-check span {
    font-size: 14px;
    color: #4a5568;
}

.custom-check a {
    color: #3182ce;
    text-decoration: none;
    font-weight: 600;
}

.custom-check a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn-modern-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(49, 130, 206, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(49, 130, 206, 0.3);
    background: linear-gradient(135deg, #2b6cb0 0%, #2c5282 100%);
}

.forgot-pass {
    display: block;
    text-align: right;
    margin-bottom: 24px;
    font-size: 14px;
    color: #718096;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-pass:hover {
    color: #3182ce;
}

/* Social Login */
.social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    color: #a0aec0;
    font-size: 13px;
    font-weight: 500;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.social-divider span {
    padding: 0 15px;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff;
}

.btn-social i {
    font-size: 18px;
    margin-right: 8px;
}

.btn-social.fb {
    background: #1877f2;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.2);
}

.btn-social.fb:hover {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.3);
}

.btn-social.tw {
    background: #1da1f2;
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.2);
}

.btn-social.tw:hover {
    background: #1a91da;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(29, 161, 242, 0.3);
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #edf2f7;
    font-size: 15px;
    color: #718096;
}

.auth-footer a {
    color: #3182ce;
    font-weight: 700;
    text-decoration: none;
    margin-left: 5px;
}

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

/* Alerts */
.modern-alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.modern-alert-danger {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}

.modern-alert-success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #c6f6d5;
}

/* Responsive */
@media (max-width: 576px) {
    .modern-auth-wrapper {
        padding: 20px 15px;
    }

    .auth-header {
        padding: 30px 20px 10px;
    }

    .auth-body {
        padding: 0 20px 30px;
    }

    .social-buttons {
        grid-template-columns: 1fr;
    }
}