/* Base Reset */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
}

/* Disable scrolling on desktop */
@media (min-width: 768px) {
    html, body {
        overflow: hidden;
    }
}

/* Allow scrolling on mobile */
@media (max-width: 767.98px) {
    html, body {
        overflow: auto;
    }
}

/* Full background image */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('/images/registration.png') no-repeat center center fixed;
    background-size: cover;
    z-index: -2;
}

/* Black transparent overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* Center form */
.registration-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Compact form box */
.form-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 1.5rem;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Form title */
h1 {
    text-align: center;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.5rem;
}

/* Labels */
label {
    color: #333;
    font-weight: 500;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

/* Input styles */
.form-control,
.form-select {
    height: 40px;
    border-radius: 6px;
    border: 1px solid #ccc;
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #24209C;
    box-shadow: 0 0 0 0.15rem rgba(36, 32, 156, 0.25);
}

.form-control::placeholder {
    color: #aaa;
}

.form-check-input:checked {
    background-color: #24209C;
    border-color: #24209C;
}

/* Button group */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.btn {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    border-radius: 6px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: #24209C;
    border-color: #24209C;
}

.btn-primary:hover {
    background-color: #1c1979;
    border-color: #1c1979;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-container {
        padding: 1rem;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
