/* Modern Animated Sign-Up Page CSS */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url("../images/background_image.jpg") no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh; /* Changed from fixed height */
    display: flex;
    justify-content: center;
    padding: 60px 20px; /* Added padding for scroll space */
    position: relative;
    animation: fadeIn 1s ease-in;
    overflow-y: auto; /* Allow scrolling if content exceeds viewport */
}

body::before {
    content: "";
    position: fixed; /* Changed to fixed to cover full page */
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
    pointer-events: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-container {
    z-index: 1;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px 35px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    animation: popUp 0.6s ease;
    color: #fff;
    position: relative;
}

@keyframes popUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.login-container h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
}

/* Two-column layout */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-group {
    flex: 1;
    min-width: calc(50% - 10px);
    display: flex;
    flex-direction: column;
}

.form-full {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Labels and inputs */
label {
    font-size: 14px;
    margin-top: 15px;
    color: #f1f1f1;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
input[type="tel"],
select {
    padding: 12px 15px;
    margin-top: 8px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    outline: none;
    transition: 0.3s ease;
    width: 100%;
}

input::placeholder {
    color: #ddd;
}

input:focus,
select:focus {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Select dropdown arrow */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Button wrapper to center the button */
.button-wrapper {
    display: flex;
    justify-content: center;
}

/* Submit button */
button[type="submit"] {
    background: linear-gradient(to right, #00bcd4, #3f51b5);
    color: white;
    padding: 12px 30px;
    margin-top: 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

button[type="submit"]:hover {
    background: linear-gradient(to right, #00acc1, #00c853);
}

/* Link section */
.signup-link,
.login-link {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.signup-link a,
.login-link a {
    color: #00e5ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.signup-link a:hover,
.login-link a:hover {
    color: #ffffff;
}

/* Error message */
.error-message {
    color: #ffb3b3;
    font-size: 14px;
    text-align: center;
    margin-bottom: 15px;
}

/* Option styles (optional for some browsers) */
select option {
    background: #333;
    color: #fff;
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }

    .form-group {
        min-width: 100%;
    }

    .login-container {
        padding: 30px 25px;
    }

    .login-container h2 {
        font-size: 24px;
    }
}
