/* public/assets/css/modern-login.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Dark Mode variables (default) */
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #311042 100%);
    --bg-blur-1: #6366f1;
    --bg-blur-2: #db2777;
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-shadow: rgba(0, 0, 0, 0.3);
    --card-hover-shadow: rgba(99, 102, 241, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --input-bg: rgba(15, 23, 42, 0.6);
    --input-border: rgba(255, 255, 255, 0.1);
    --input-text: #ffffff;
    --input-placeholder: #94a3b8;
    --divider-line: rgba(255, 255, 255, 0.1);
    --divider-text-bg: rgba(30, 41, 59, 1);
    --logo-bg: rgba(255, 255, 255, 0.92);
    --logo-border: rgba(255, 255, 255, 0.32);
    --logo-shadow: rgba(0, 0, 0, 0.28);
    --btn-primary-bg: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    --btn-primary-hover-bg: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
    --btn-primary-shadow: rgba(99, 102, 241, 0.3);
    --btn-primary-hover-shadow: rgba(99, 102, 241, 0.4);
    --btn-danger-bg: rgba(239, 68, 68, 0.1);
    --btn-danger-border: rgba(239, 68, 68, 0.4);
    --btn-danger-text: #f87171;
    --btn-danger-hover-bg: rgba(239, 68, 68, 0.2);
    --choice-card-bg: rgba(30, 41, 59, 0.6);
    --choice-card-border: rgba(255, 255, 255, 0.05);
}

/* Light Mode Overrides */
body.light-theme {
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    --bg-blur-1: #c7d2fe;
    --bg-blur-2: #fbcfe8;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(15, 23, 42, 0.08);
    --card-shadow: rgba(15, 23, 42, 0.06);
    --card-hover-shadow: rgba(99, 102, 241, 0.1);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --input-bg: rgba(255, 255, 255, 0.9);
    --input-border: rgba(15, 23, 42, 0.12);
    --input-text: #0f172a;
    --input-placeholder: #64748b;
    --divider-line: rgba(15, 23, 42, 0.08);
    --divider-text-bg: rgba(255, 255, 255, 1);
    --logo-bg: rgba(255, 255, 255, 0.38);
    --logo-border: rgba(15, 23, 42, 0.06);
    --logo-shadow: rgba(15, 23, 42, 0.08);
    --btn-primary-bg: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    --btn-primary-hover-bg: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
    --btn-primary-shadow: rgba(99, 102, 241, 0.25);
    --btn-primary-hover-shadow: rgba(99, 102, 241, 0.35);
    --btn-danger-bg: rgba(239, 68, 68, 0.05);
    --btn-danger-border: rgba(239, 68, 68, 0.25);
    --btn-danger-text: #dc2626;
    --btn-danger-hover-bg: rgba(239, 68, 68, 0.1);
    --choice-card-bg: rgba(255, 255, 255, 0.9);
    --choice-card-border: rgba(15, 23, 42, 0.08);
}

body.blank-page {
    font-family: 'Outfit', sans-serif !important;
    background: var(--bg-gradient) !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    transition: background 0.3s ease;
}

/* Abstract background shapes for visual depth */
body.blank-page::before,
body.blank-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.45;
    pointer-events: none;
    transition: background 0.3s ease;
}

body.blank-page::before {
    width: 300px;
    height: 300px;
    background: var(--bg-blur-1);
    top: 15%;
    left: 20%;
    animation: floatShape 8s ease-in-out infinite alternate;
}

body.blank-page::after {
    width: 350px;
    height: 350px;
    background: var(--bg-blur-2);
    bottom: 15%;
    right: 20%;
    animation: floatShape 10s ease-in-out infinite alternate-reverse;
}

@keyframes floatShape {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-30px) scale(1.1); }
}

.app-content {
    z-index: 10;
    width: 100%;
}

.flexbox-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glassmorphism Card styling */
.card.border-grey {
    background: var(--card-bg) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid var(--card-border) !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 40px var(--card-shadow) !important;
    padding: 2.5rem 2rem !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.card.border-grey:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px var(--card-hover-shadow) !important;
}

.card-header {
    background: transparent !important;
    border: none !important;
    padding: 0 0 1.5rem 0 !important;
    text-align: center;
}

.card-header img {
    transition: transform 0.3s ease;
    max-height: 100px;
    object-fit: contain;
}

.login-brand-logo {
    width: 200px;
    height: auto;
    padding: 10px 14px;
    background: var(--logo-bg);
    border: 1px solid var(--logo-border);
    border-radius: 18px;
    box-shadow: 0 12px 28px var(--logo-shadow);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-header img:hover {
    transform: scale(1.05);
}

.card-subtitle {
    color: var(--text-primary) !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    margin-top: 1rem !important;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif !important;
    transition: color 0.3s ease;
}

/* Form controls */
.form-group {
    margin-bottom: 1.5rem !important;
}

.form-control {
    background: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    border-radius: 12px !important;
    color: var(--input-text) !important;
    padding: 0.8rem 1rem 0.8rem 2.8rem !important;
    font-size: 0.95rem !important;
    transition: all 0.25s ease !important;
}

.form-control::placeholder {
    color: var(--input-placeholder) !important;
    opacity: 0.7;
}

.form-control:focus {
    background: var(--input-bg) !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25) !important;
    outline: none !important;
}

.form-group.position-relative i {
    color: var(--input-placeholder);
    font-size: 1.25rem !important;
    transition: color 0.25s ease;
}

.form-control:focus + .form-control-position i {
    color: #6366f1 !important;
}

.form-control-position {
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: 12px !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    line-height: 1 !important;
}

/* Captcha styling */
.form-group label {
    color: var(--text-secondary) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    margin-bottom: 0.5rem !important;
    display: block;
    transition: color 0.3s ease;
}

#captcha-answer {
    padding-left: 1.2rem !important;
}

/* Button styling */
.btn-outline-info {
    background: var(--btn-primary-bg) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px var(--btn-primary-shadow) !important;
    transition: all 0.25s ease !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    width: 100%;
}

.btn-outline-info:hover {
    background: var(--btn-primary-hover-bg) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px var(--btn-primary-hover-shadow) !important;
}

.btn-outline-info:active {
    transform: translateY(0) !important;
}

/* Register Button styling */
.btn-outline-danger {
    background: var(--btn-danger-bg) !important;
    border: 1px solid var(--btn-danger-border) !important;
    color: var(--btn-danger-text) !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 12px !important;
    transition: all 0.25s ease !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    width: 100%;
    margin-top: 0.5rem;
}

.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
}

/* Divider line-on-side */
.line-on-side {
    border-bottom: 1px solid var(--divider-line) !important;
    line-height: 0.1em !important;
    margin: 1.5rem 0 !important;
    text-align: center;
    transition: border-color 0.3s ease;
}

.line-on-side span {
    background: var(--divider-text-bg) !important;
    padding: 0 10px !important;
    color: var(--text-secondary) !important;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Text styles */
p.card-subtitle {
    font-size: 0.85rem !important;
    text-transform: none !important;
    color: var(--text-secondary) !important;
    transition: color 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--card-hover-shadow) !important;
}

.theme-toggle-btn i {
    font-size: 1.25rem;
}
