/*
|--------------------------------------------------------------------------
| REGISTER PAGE STYLE (DARK MODE / PROFESSIONAL)
|--------------------------------------------------------------------------
| Refactored for a clean, professional dark mode with animations and transitions.
*/

/* --- Global Variables (Professional Dark Palette) --- */
:root {
    --bg-dark: #121212;         /* Deepest dark background */
    --card-bg: #1e1e1e;         /* Form/Card background */
    --accent-color: #00cc99;    /* Emerald Green (Primary Action) */
    --text-light: #f0f0f0;      /* Near-white text */
    --input-focus: #33ffc2;     /* Lighter green for hover/focus */
    --shadow-color: rgba(0, 0, 0, 0.7); /* Deep shadow */
    --error-color: #ff6b6b;     /* Soft red for errors/accents */
}

/* --- Base Body & Layout (Centered Flexbox) --- */
body {
    font-family: 'Roboto', 'Arial', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    margin: 0;
    padding: 20px; /* Padding for mobile safety */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-image: url(register.png); /* Using the provided image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Optional: Makes background static */
}

h1 {
    font-size: 2.5rem;
    color: var(--accent-color);
    text-align: center;
    text-shadow: 0 0 5px rgba(0, 204, 153, 0.5); 
    margin: 10px 0 20px 0;
}

h3 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 25px;
}

.div1 {
    /* Contains the form and its header */
    background-color: var(--card-bg);
    background-color: rgba(30, 30, 30, 0.95); /* Subtle transparency */
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--accent-color); 
    box-shadow: 0 4px 20px var(--shadow-color);
    width: 90%;
    max-width: 500px;
    transition: all 0.5s ease;
    animation: fadeIn 1s ease-out; /* Entry Animation */
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Spacing between form groups */
}

/* --- Input & Label Styling --- */
label {
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    color: var(--text-light);
}

/* Target all main text inputs */
input[type="text"], 
input[type="email"], 
input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #333;
    color: var(--text-light);
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}

input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 8px var(--input-focus);
    background-color: #2a2a2a;
    outline: none;
}

/* Gender Radio Buttons Styling */
.gender-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 5px;
    font-size: 1rem;
}
input[type="radio"] {
    margin-left: 10px;
    /* Optional: Custom radio button styling can be added here */
}

/* --- Submit Button --- */
.submit {
    width: 100%;
    padding: 12px;
    margin-top: 25px;
    border: none;
    border-radius: 5px;
    background-color: var(--accent-color);
    color: var(--bg-dark); 
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.submit:hover {
    background-color: var(--input-focus);
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px rgba(0, 204, 153, 0.5);
}

/* --- Login Link --- */
.p-login {
    text-align: center;
    margin-top: 25px;
    color: var(--text-light);
}

.login {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.login:hover {
    color: var(--input-focus);
    text-decoration: underline;
}

/* --- Back Link --- */
body > a {
    color: var(--accent-color);
    font-size: 1.0rem;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 20px;
    transition: color 0.3s;
}

body > a:hover {
    color: var(--input-focus);
}

/* --- Animation Keyframes --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Media Queries (Responsiveness) --- */
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }
    .div1 {
        padding: 30px 20px;
    }
    body {
        /* Remove the background image on small screens for better performance and readability */
        background-image: none;
        background-color: var(--bg-dark);
        background-attachment: scroll;
        padding: 10px;
    }
}