/* Technyx Portal - Custom Branding */

:root {
    --technyx-bg: #0a0e1a;
    --technyx-bg-card: #0d1526;
    --technyx-bg-card-border: #1a2d42;
    --technyx-cyan: #10e0f0;
    --technyx-cyan-dim: #0a8fa0;
    --technyx-cyan-glow: rgba(16, 224, 240, 0.15);
    --technyx-blue: #003060;
    --technyx-text: #d9e2ec;
    --technyx-text-muted: #627d98;
}

/* ========================================
   LOGIN PAGE
   ======================================== */

.technyx-login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    position: relative;
}

.technyx-login-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(16, 224, 240, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 48, 96, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(16, 224, 240, 0.04) 0%, transparent 40%),
        var(--technyx-bg);
    z-index: -1;
}

.technyx-login-card {
    width: 100%;
    max-width: 24rem;
    background: var(--technyx-bg-card);
    border: 1px solid var(--technyx-bg-card-border);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow:
        0 0 40px rgba(16, 224, 240, 0.05),
        0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.technyx-login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.technyx-login-logo img {
    height: 7rem;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(16, 224, 240, 0.2));
}

.technyx-login-divider {
    text-align: center;
    margin-bottom: 1.5rem;
}

.technyx-login-divider span {
    color: var(--technyx-text-muted);
    font-size: 0.875rem;
}

/* Keycloak SSO Button */
.technyx-sso-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--technyx-cyan) 0%, #0dbdd0 100%);
    color: var(--technyx-bg);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 0 20px rgba(16, 224, 240, 0.2);
}

.technyx-sso-btn:hover {
    background: linear-gradient(135deg, #1ae0f3 0%, #10e0f0 100%);
    box-shadow: 0 0 30px rgba(16, 224, 240, 0.35);
    transform: translateY(-1px);
    color: var(--technyx-bg);
}

.technyx-sso-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Separator */
.technyx-login-separator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.technyx-login-separator-line {
    flex: 1;
    height: 1px;
    background: var(--technyx-bg-card-border);
}

.technyx-login-separator span {
    color: var(--technyx-text-muted);
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Footer */
.technyx-login-footer {
    margin-top: 2rem;
    color: var(--technyx-text-muted);
    font-size: 0.75rem;
}

/* ========================================
   FILAMENT OVERRIDES (Dark mode)
   ======================================== */

/* Force the auth simple layout background */
.fi-simple {
    background: var(--technyx-bg) !important;
}

.fi-simple::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(16, 224, 240, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 48, 96, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Hide the default Filament simple layout wrapper on login */
.fi-simple > .fi-simple-main-ctn {
    position: relative;
    z-index: 1;
}

/* Sidebar branding */
.fi-sidebar-header {
    border-bottom-color: var(--technyx-bg-card-border) !important;
}

/* Portal service cards */
.dark .technyx-service-card {
    background: var(--technyx-bg-card);
    border-color: var(--technyx-bg-card-border);
    transition: all 0.2s ease;
}

.dark .technyx-service-card:hover {
    border-color: var(--technyx-cyan);
    box-shadow: 0 0 20px var(--technyx-cyan-glow);
}

/* Subtle glow on focused inputs */
.dark .fi-input:focus,
.dark .fi-input:focus-within {
    box-shadow: 0 0 0 2px var(--technyx-cyan-glow) !important;
}

/* Scrollbar styling for dark theme */
.dark ::-webkit-scrollbar {
    width: 6px;
}

.dark ::-webkit-scrollbar-track {
    background: var(--technyx-bg);
}

.dark ::-webkit-scrollbar-thumb {
    background: var(--technyx-bg-card-border);
    border-radius: 3px;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: var(--technyx-cyan-dim);
}
