﻿/* Custom styles for a sleek, modern UI */

/* Brand colors — override per client in contents/css/net/themes/<client>.css */
:root {
    --brand-primary: #4fb3bf;
    --brand-primary-hover: #74c3cd;
    --brand-primary-dark: #3aafbf; /* primary used in dark mode */
    --brand-focus-ring: rgba(79, 179, 191, 0.6);
    --brand-link: #1a3a6b;
    --brand-link-hover: #2563eb;
    --brand-link-dark: #7db8ff; /* link color in dark mode */
    --brand-link-dark-hover: #a8cfff;
}

/* General body styling */
body {
    background-color: #f5f5f5;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

    /* Dark Mode General body styling */
    body.dark-mode {
        background-color: #121212;
        color: #ffffff;
    }

/* Card styling for the form */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0; /* Added margin for better spacing on mobile */
}

/* Dark Mode Card styling for the form */
body.dark-mode .card {
    background-color: #1e1e1e;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Rounded elements for a modern look */
.form-control, .btn {
    border-radius: 15px;
}

/* Input group text background and border */
.input-group-text {
    background-color: #ffffff;
    border-right: none;
}

/* Dark Mode Input group text background and border */
body.dark-mode .input-group-text {
    background-color: #2b2b2b;
}

/* Remove left border from form control when used with input group */
.form-control {
    border-left: none;
}

/* Primary button styling */
.btn-primary {
    background-color: var(--brand-primary);
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    .btn-primary:disabled {
        background-color: var(--brand-primary);
    }

    /* Keep the outline but match it to the button color */
    .btn-primary:focus, .btn-primary:active, .btn-primary:focus-visible {
        box-shadow: 0 0 0 0.25rem var(--brand-focus-ring);
        background-color: var(--brand-primary);
    }

/* Dark Mode Primary button styling */
body.dark-mode .btn-primary {
    background-color: var(--brand-primary-dark);
}

/* Primary button hover effect */
.btn-primary:hover {
    background-color: var(--brand-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1);
}

/* Secondary button styling */
.btn-secondary {
    background-color: #6c757d;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Secondary button styling */
body.dark-mode .btn-secondary {
    background-color: #5a6268;
}

/* Secondary button hover effect */
.btn-secondary:hover {
    background-color: #868e96;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1);
}

/* Icon color inside input group */
.input-group-prepend .input-group-text i {
    color: var(--brand-primary);
}

/* Dark Mode Icon color inside input group */
body.dark-mode .input-group-prepend .input-group-text i {
    color: var(--brand-primary-dark);
}

/* Custom invalid feedback styling */
.invalid-feedback {
    display: block;
    font-size: 0.875em;
    color: #dc3545;
    margin-top: 0.25rem;
}

/* Dark Mode Custom invalid feedback styling */
body.dark-mode .invalid-feedback {
    color: #ff6b6b;
}

/* Responsive spacing for the form */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
}

/* Terms of Service yellow notice box */
.tos-notice {
    background-color: #fff8e1;
    border: 1px solid #ffe082;
    border-left: 4px solid #ffc107;
    color: #8a6d3b;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 5px;
}

.tos-notice-icon {
    color: #ffc107;
    margin-right: 6px;
}

.tos-notice-link {
    color: var(--brand-link);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

    .tos-notice-link:hover {
        color: var(--brand-link-hover);
    }

/* Dark Mode Terms of Service yellow notice box */
body.dark-mode .tos-notice {
    background-color: #3a3320;
    border-color: #5c4d1a;
    border-left-color: #ffc107;
    color: #e6c97a;
}

body.dark-mode .tos-notice-link {
    color: var(--brand-link-dark);
}

    body.dark-mode .tos-notice-link:hover {
        color: var(--brand-link-dark-hover);
    }

/* Custom styles for the countdown text */
#countdown {
    font-size: 1em;
    color: #dc3545;
    margin-top: 10px;
}

/* Dark Mode Custom styles for the countdown text */
body.dark-mode #countdown {
    color: #ff6b6b;
}

/* Align buttons to the right */
.form-group {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 30px; /* Added margin below the buttons */
}

/* Add margin to the back button */
#backButton {
    margin-right: auto;
}

/* Floating animation for the form */
.animate__animated.animate__fadeInUp {
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
}

@media (max-width: 576px) {
    /* Ensuring the form is full width on mobile */
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .form-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        margin-bottom: 20px; /* Adjusted margin for mobile */
    }

    .btn {
        width: 100%;
    }

    .card {
        margin: 10px 0; /* Adjusted margin for mobile */
    }
}

