/*@font-face {
    font-family: 'Timeburner';
    src: url('/fonts/Timeburner-xJB8.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
*/
@font-face {
    font-family: 'Timeburner';
    src: url('/fonts/TimeburnerBold-peGR.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-size: 15px;
}

@font-face {
    font-family: 'Norse';
    src: url('/fonts/NorseBold-2Kge.otf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-size: 15px;
}

/* NEW DESIGN */
/* Full-page layout with background image */
.main-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: url('images/nightsky.jpg') no-repeat center center;
    background-size: cover;
    font-family: 'Segoe UI', sans-serif;
    color: white;
}

/* Background overlay behind all content (subtle dark) */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 0;
}

/* Sticky top navbar */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0,0,0,0.2); /* slightly transparent to see background */
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-left, .nav-center, .nav-right {
    display: flex;
    align-items: center;
}

    .nav-center a, .nav-right a {
        margin: 0 1rem;
        text-decoration: none;
        color: white;
        font-weight: 500;
        transition: color 0.2s;
    }

        .nav-center a:hover, .nav-right a:hover {
            color: #d1e0ff;
        }

.logo-text-container {
    display: flex;
    flex-direction: column; /* stack vertically */
    align-items: center; /* center horizontally */
    justify-content: center;
}

.logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
}

.logo {
    height: 70px; /* adjust as needed */
}

.logo-text {
    font-family: 'Norse', sans-serif;
    font-size: 1.6rem; /* bigger text */
    margin-top: 0.2rem; /* small margin below logo */
    font-weight: bold;
}

.validation-message {
    color: red !important;
    font-size: .85rem;
    font-weight: 600;
    text-align: start;
    margin: 5px;
}

/* Scrollable content area */
.content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
/* Row layout for cards */
.card-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap; /* allow wrapping on smaller screens */
    margin: 2rem 0;
    position: relative;
}

/* Frosted glass cards */
.frosted-card {
    position: relative;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2rem;
    color: white;
    box-shadow: 0 4px 25px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 250px; /* allow resizing */
    max-width: 350px;
    min-width: 260px;
    z-index: 1;
}

    /* Hover effect */
    .frosted-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    }

    /* Headings, HR, and paragraph */
    .frosted-card h2 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .frosted-card hr {
        border: 0;
        height: 1px;
        background: linear-gradient(to right, rgba(255,255,255,0.2), rgba(255,255,255,0));
        margin: 1rem 0;
    }

    .frosted-card p {
        font-size: 1rem;
        line-height: 1.6;
        text-align: center;
    }

/* Mobile: stack vertically with overlap */
@media (max-width: 768px) {
    .card-row {
        flex-direction: column; /* vertical on mobile */
        align-items: center;
        gap: 0; /* negative margin for overlap */
    }

    .frosted-card {
        max-width: 90%;
        width: auto;
        margin-top: -2rem; /* overlap previous card */
    }

        .frosted-card:first-child {
            margin-top: 0;
        }
}


/* Responsive: vertical nav for mobile */
@media (max-width: 768px) {

        /* Raise the first card so it doesn't overlap itself */
        .frosted-card:first-child {
            margin-top: 0;
        }

    .top-nav {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }

    .nav-left, .nav-center, .nav-right {
        flex-direction: column;
        margin: 0.5rem 0;
    }

        .nav-center a, .nav-right a {
            margin: 0.3rem 0;
            text-align: center;
        }

    .logo {
        height: 40px;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .nav-center a, .nav-right a {
        font-size: 1rem;
    }

    .logo {
        height: 35px;
    }
}

/* ENDS HERE*/
/* Apply globally */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.product-name {
    font-family: 'Timeburner'
}

.title-name {
    font-family: 'Timeburner'
}

.norse{
        font-family: 'Norse'
}


.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgO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9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.carousel-container {
    position: relative;
    width: 100%;
    text-align: center;
    min-height: 160px; /* keeps height steady */
    overflow: hidden;
}

.carousel-slide {
    opacity: 0;
    position: absolute;
    inset: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 0; /*  always behind */
    pointer-events: none; /*  ignore clicks */
}

    .carousel-slide.active {
        opacity: 1;
        position: relative; /* relative so it sits in flow */
        z-index: 1; /* above hidden slides */
        pointer-events: auto; /* clickable */
    }

.carousel-controls {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 2; /* always above all slides */
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

    .carousel-dot:hover {
        background: rgba(255, 255, 255, 0.7);
    }

    .carousel-dot.active {
        background: rgba(255, 255, 255, 1);
        transform: scale(1.2);
    }

    /*ERROR MESSAGE*/
.error-message-bar {
    background: #d32f2f;
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

    /*LOGIN*/
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.login-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 18px;
    padding: 2.5rem;
    max-width: 400px;
    width: 100%;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.login-header .logo {
    height: 60px;
    margin-bottom: 1rem;
}

.login-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

    .form-group label {
        display: block;
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
        opacity: 0.9;
    }

.form-control {
    width: 100%;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    border: none;
    outline: none;
    font-size: 1rem;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
}

    .form-control:focus {
        box-shadow: 0 0 0 2px rgba(255,255,255,0.5);
    }
    /* Only highlight invalid if user has interacted with the field */
    .form-control.invalid {
        border: 2px solid #e74c3c; /* red border */
        background: rgba(255, 0, 0, 0.1);
    }

    /* Only highlight valid if user has interacted with the field */
    .form-control.valid.modified {
        border: 2px solid #2ecc71; /* green border */
    }

.btn-login {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 0.5rem;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    }

.login-footer {
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

    .login-footer a {
        color: #d1e0ff;
        text-decoration: none;
        transition: color 0.2s;
    }

        .login-footer a:hover {
            color: white;
        }

    /*END LOGIN*/

    /*REGISTER*/
.register-page {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.register-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 18px;
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.register-header .logo {
    height: 60px;
    margin-bottom: 1rem;
}

.register-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.register-header p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.customer-type-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    gap: 10px;
}

.toggle-btn {
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    color: white;
    transition: transform 0.2s, background 0.2s;
}

    .toggle-btn.active {
        background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    }

    .toggle-btn:hover {
        transform: translateY(-2px);
    }

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

    .form-group label {
        display: block;
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
        opacity: 0.9;
    }

.form-control {
    width: 100%;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    border: none;
    outline: none;
    font-size: 1rem;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
}

    .form-control:focus {
        box-shadow: 0 0 0 2px rgba(255,255,255,0.5);
    }

.btn-register {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 0.5rem;
}

    .btn-register:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    }

.login-footer {
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

    .login-footer a {
        color: #d1e0ff;
        text-decoration: none;
        transition: color 0.2s;
    }

        .login-footer a:hover {
            color: white;
        }

    /*REGISTER END*/