@import url("assets/bootstrap-icons/font/bootstrap-icons.min.css");

:root {
    /* Luxuriöse Blau- und Silbertöne */
    --primary-blue: #1e3a8a; /* Deep Royal Blue */
    --primary-blue-hover: #3b82f6; /* Bright Sapphire */
    --accent-silver: #e2e8f0; /* Platinum/Silver */
    --bg-dark: #020617; /* Midnight Navy */
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --error-red: #ef4444;
    
    /* System Font Stacks */
    --font-serif: "Georgia", "Garamond", "Times New Roman", serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    /* Subtile blaue Lichteffekte im Hintergrund */
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(30, 58, 138, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 40%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    overflow: hidden;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    z-index: 10;
}

.login-card {
    background: var(--card-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 45px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.9s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.header {
    text-align: center;
    margin-bottom: 45px;
}

.header h1 {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 8px;
    /* Silber-Blau-Verlauf für den Titel */
    background: linear-gradient(to right, #94a3b8, #f8fafc, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 26px;
}

.form-group label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

.form-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary-blue-hover);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.utilities {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    font-size: 0.8rem;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.remember-me:hover {
    color: var(--text-main);
}

.remember-me input {
    margin-right: 8px;
    accent-color: var(--primary-blue-hover);
}

.forgot-password {
    color: var(--primary-blue-hover);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.forgot-password:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.link-button {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.forgot-panel {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.forgot-form .form-group {
    margin-bottom: 12px;
}

.forgot-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.forgot-actions .btn-login {
    margin: 0;
    width: auto;
    padding: 12px 14px;
    letter-spacing: 1px;
}

.forgot-cancel {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 11px 14px;
    cursor: pointer;
}

.forgot-cancel:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-login {
    width: 100%;
    /* Tiefer blauer Glas-Gradient */
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px -5px rgba(30, 58, 138, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 15px 30px -5px rgba(30, 58, 138, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.footer-text {
    text-align: center;
    margin-top: 35px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-text a {
    color: var(--accent-silver);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border 0.3s;
}

.footer-text a:hover {
    border-bottom-color: var(--accent-silver);
}

.error-message, .success-message {
    padding: 14px;
    margin-bottom: 25px;
    font-size: 0.85rem;
    border-radius: 10px;
    text-align: center;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
}

/* Dekorative Hintergrund-Leuchten */
.decoration {
    position: absolute;
    width: 45vw;
    height: 45vw;
    background: var(--primary-blue);
    filter: blur(180px);
    opacity: 0.08;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}
.dec-1 { top: -15vw; left: -10vw; }
.dec-2 { bottom: -15vw; right: -10vw; }

/* --- Glow Card Styles (aus glow.html) --- */
.glow-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

.btn.glow-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.3s ease, background 0.3s ease;
}

.btn.glow-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        120px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        var(--glow-color, rgba(99,102,241,0.5)),
        transparent 40%
    );
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.btn.glow-card:hover::before {
    opacity: 1;
}

.btn.glow-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 10px rgba(99, 102, 241, 0.2),
        0 0 20px rgba(99, 102, 241, 0.1);
}
/* --- Ende Glow Card Styles --- */
/* Stock Detail Page Styles */
.panel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
}

.collapsible-header {
    user-select: none;
    transition: background-color 0.2s ease;
    padding: 4px 0;
}

.collapsible-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 4px 8px;
}

.collapsible-header i {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.collapsible-content {
    transition: all 0.3s ease;
}

.btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #ffffff;
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: #ffffff;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
}

.detail-shell {
    width: min(1280px, 96vw);
    margin: 18px auto;
    color: var(--text-main);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 12px;
}

.detail-header h1 {
    margin: 0;
}

.detail-header a {
    color: var(--accent-silver);
    text-decoration: none;
}

.chart-container {
    width: 100%;
    height: 650px;
    margin-bottom: 50px;
}

.mobile-spacer {
    height: 0;
}

.range-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.range-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.range-btn:hover {
    background: rgba(30, 58, 138, 0.6);
}

.range-btn.active {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border-color: #1e40af;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-value {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 6px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* Responsive Stock Detail */
@media (max-width: 960px) {
    .detail-shell {
        width: min(100%, 98vw);
        margin: 10px auto;
    }

    .detail-header {
        flex-direction: column;
        align-items: stretch;
    }

    .detail-header h1 {
        font-size: 1.3rem;
    }

    .detail-header .btn {
        text-align: center;
    }

    .range-btn {
        flex: 1 1 calc(50% - 8px);
        text-align: center;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .chart-container {
        height: 500px;
        margin-bottom: 40px;
    }

    .panel {
        padding: 12px;
        border-radius: 12px;
    }
}

@media (max-width: 520px) {
    .range-btn {
        flex-basis: 100%;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .chart-container {
        height: 500px;
        margin-bottom: 70px;
    }

    .mobile-spacer {
        height: 250px;
    }

    .chart-panel {
        background: transparent;
        border: none;
        padding: 0;
    }
}
