/* Custom premium theme matching React UI (teal/slate dark mode) */
html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #030712;
    color: #f8fafc;
    min-height: 100vh;
}

/* Standalone Auth Wrapper */
.auth-page-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    background-color: #020617;
    overflow: hidden;
    padding: 2rem 1rem;
}

/* Background Glowing Blobs */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 350px;
    height: 350px;
    background-color: #0d9488; /* teal-600 */
    animation: pulse 8s infinite ease-in-out;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 350px;
    height: 350px;
    background-color: #d97706; /* accent-600 */
    animation: pulse 12s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.12; }
    50% { transform: scale(1.15) translate(20px, -20px); opacity: 0.2; }
}

.auth-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 460px;
}

/* Card Styling */
.auth-card {
    background-color: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: scale-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scale-in {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

/* Branding */
.auth-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(13, 148, 136, 0.05));
    border: 1px solid rgba(20, 184, 166, 0.3);
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease;
}

.auth-logo:hover {
    transform: scale(1.05);
}

.lock-icon {
    width: 2.25rem;
    height: 2.25rem;
    color: #2dd4bf; /* teal-400 */
}

.auth-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #ffffff, #cbd5e1, #99f6e4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
    letter-spacing: -0.025em;
}

.auth-brand .subtitle {
    font-size: 0.875rem;
    color: #94a3b8; /* surface-400 */
    margin-bottom: 0;
}

/* Page Section Titles */
.auth-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 0.25rem;
}

.auth-section-desc {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

/* Input Fields Overhaul */
.form-floating {
    position: relative;
}

.form-floating > .form-control {
    background-color: rgba(15, 23, 42, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-radius: 0.75rem !important;
    height: 3.75rem !important;
    padding: 1.25rem 1rem 0.25rem 1rem !important;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-floating > .form-control:focus {
    border-color: #14b8a6 !important; /* teal-500 */
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15) !important;
    outline: none !important;
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 0.875rem 1rem !important;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
    color: #64748b !important; /* surface-500 */
    font-size: 0.95rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    transform: scale(0.8) translate(0.125rem, -0.65rem) !important;
    color: #2dd4bf !important; /* teal-400 */
}

/* Validation Messages */
.validation-message, .text-danger {
    color: #f87171 !important; /* red-400 */
    font-size: 0.775rem;
    font-weight: 500;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #0d9488, #14b8a6) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 0.75rem !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2) !important;
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #14b8a6, #2dd4bf) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(20, 184, 166, 0.3) !important;
}

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

/* Checkbox styling */
.form-check-input {
    background-color: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0.25rem;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #14b8a6 !important;
    border-color: #14b8a6 !important;
}

.form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15) !important;
    border-color: #14b8a6 !important;
}

/* Links */
.auth-link {
    color: #2dd4bf !important; /* teal-400 */
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.auth-link:hover {
    color: #5eead4 !important; /* teal-300 */
    text-decoration: underline !important;
}

.text-surface-400 {
    color: #94a3b8 !important;
}

/* Status Messages */
.alert-info, .status-message {
    background-color: rgba(20, 184, 166, 0.1) !important;
    border: 1px solid rgba(20, 184, 166, 0.2) !important;
    color: #2dd4bf !important;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 0.825rem;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 0.825rem;
}
