/* Custom Styles for Form Survey SPPG */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

.page-body {
    min-height: calc(100vh - 200px);
}

/* Background Animation */
.auth-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #f3f4f6, #e5e7eb);
    z-index: -1;
    overflow: hidden;
}

.auth-bg::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle at 30% 30%, rgba(102, 126, 234, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 70% 60%, rgba(118, 75, 162, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 40%);
    animation: mesh-rotate 20s linear infinite;
}

@keyframes mesh-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    overflow: hidden;
    animation: slide-up 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modern Form Elements */
.form-control-modern {
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.2s ease;
}

.form-control-modern:focus {
    background: #fff !important;
    border-color: #764ba2 !important;
    box-shadow: 0 0 0 4px rgba(118, 75, 162, 0.1) !important;
}

.btn-modern {
    background: var(--primary-gradient);
    border: none;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    color: white !important;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.4);
}

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

/* Modern Split Screen Auth */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.auth-side-branding {
    flex: 1;
    background: var(--primary-gradient);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.auth-side-branding::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: mesh-rotate 30s linear infinite;
}

.auth-branding-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.auth-side-form {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem;
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
}

@media (max-width: 992px) {
    .auth-side-branding {
        display: none;
    }
}

/* Enhanced Form Elements */
.modern-input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.modern-input-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.5rem;
    display: block;
}

.modern-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: #f9fafb;
    border: 2px solid #f3f4f6;
    border-radius: 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.modern-input:focus {
    background: #fff;
    border-color: #764ba2;
    box-shadow: 0 0 0 4px rgba(118, 75, 162, 0.1);
    outline: none;
}

.modern-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(118, 75, 162, 0.3);
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(118, 75, 162, 0.4);
}

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

/* Hub Stage Enhancements */
.divide-y > .py-3 {
    transition: all 0.2s ease;
    border-radius: 0.75rem;
}

.divide-y > .py-3:hover {
    background: rgba(var(--tblr-primary-rgb), 0.03);
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.btn-pill {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

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

.badge-outline {
    background: transparent !important;
    border: 1px solid currentColor !important;
    padding: 0.35em 0.8em !important;
}

.progress-xs {
    height: 6px !important;
    border-radius: 10px;
}
