@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

/* Core Form Styling */
form {
    background-color: #ffffff;
    padding: 2rem;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}

/* Inputs and Textareas */
input,
select,
textarea {
    font-size: 1rem;
    border: 1px solid #dadde1;
    border-radius: 0.375rem;
    background-color: #f2f4f8;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
    resize: none;
    min-height: 8rem;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #027abf;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 191, 0.2);
    outline: none;
}

/* Buttons (override default Bootstrap coloring only if needed) */
button,
.submit-button,
.login-button,
.register-button {
    background-color: #027abf;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

button:hover,
.submit-button:hover,
.login-button:hover,
.register-button:hover {
    background-color: #0a95dd;
    box-shadow: 0 0.5rem 1rem rgba(0, 86, 179, 0.1);
}

/* Stepper */
.stepper {
    text-align: center;
    margin-top: 2rem;
}

.stepper .step {
    display: inline-block;
    height: 1rem;
    width: 1rem;
    background-color: #e4e6eb;
    border-radius: 50%;
    opacity: 0.5;
    transition: background-color 0.2s ease;
}

.stepper .step.active {
    background-color: #027abf;
    opacity: 1;
}

.stepper .step.finish {
    background-color: #28a745;
}

/* Form Groups (handled by Bootstrap, minimal override) */
.form-group {
    margin-bottom: 1rem;
}

/* Form Labels */
label {
    font-weight: 500;
    color: #1c1e21;
}

/* Error Handling */
.input-error {
    border-color: red !important;
}

.errorlist {
    color: red;
    list-style-type: none;
    margin: 0.25rem 0 1rem 0;
    padding-left: 0;
}

.error-message {
    color: red;
    font-size: 0.875rem;
}

/* Password strength helper */
.pw-met {
    color: green;
}

.pw-not-met {
    color: #d9534f;
}

/* Responsive Layout (let Bootstrap handle layout — minimal overrides) */
@media (max-width: 768px) {
    form {
        padding: 1.5rem;
    }

    button {
        font-size: 0.95rem;
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 480px) {
    form {
        padding: 1rem;
    }

    button {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* Login / Auth Container */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f2f4f8;
}

.login-box {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}

/* Forgot password link */
.forgot-password-link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* Form Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #28a745;
}

input:focus + .slider {
    box-shadow: 0 0 1px #28a745;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.pw-requirement .indicator {
    width: 1.5em;
    text-align: center;
    display: inline-block;
  }
  