.register-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    background-image: url("cover page.avif");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.register-page::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.register-page h1 {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.5);
}

.register-container {
    width: 100%;
    max-width: 450px;
}

.register-page form {
    background-color: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 1.25rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    margin-top: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit .btn-loader {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.form-links {
    margin-top: 1.5rem;
    text-align: center;
}

.form-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition-fast);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.form-links a:hover {
    text-decoration: underline;
}

.theme-toggle-wrapper {
    margin-top: 2rem;
}

@media screen and (max-width: 768px) {
    .register-page {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .form-row .form-group {
        margin-bottom: 0.5rem;
    }
}

@media screen and (max-width: 480px) {
    .register-page {
        padding: 1rem;
    }
    
    .register-page form {
        padding: 1.5rem;
    }
    
    .register-page h1 {
        font-size: 1.8rem;
    }
}
