﻿
/* keep your provided CSS as global */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 200, 200, 0.9)), url('/Image/whitelogo-removebg-preview.png') no-repeat center center fixed;
    background-size: 900px;
    background-color: #000;
}

.login-container {
    background-color: #ffffff;
    width: 100%;
    max-width: 900px;
    padding: 2.5rem 3rem;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    animation: fadeIn 1s ease-in-out;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    width: 90px;
    height: auto;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
    color: #CC0000;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

p {
    color: #555;
    margin-bottom: 1.5rem;
}

/* two-column form layout */
.form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
    text-align: left;
    margin-top: 1rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: 0.3s;
}

    .form-group input:focus, .form-group select:focus {
        border-color: #CC0000;
        box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
    }

.btn-register {
    width: 100%;
    padding: 0.9rem;
    background: #CC0000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 1.5rem;
}

    .btn-register:hover {
        background: #cc0000;
    }

.login-links {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

    .login-links a {
        color: #CC0000;
        text-decoration: none;
        margin-left: 5px;
    }

        .login-links a:hover {
            text-decoration: underline;
            color: #cc0000;
        }

#previewImage {
    display: none;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 8px;
    border: 2px solid #CC0000;
}

@media (max-width: 768px) {
    .form-container {
        grid-template-columns: 1fr;
    }
}
