/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables */
:root {
    --main-color: #140335;
    --pink-color: #09052c;
    --white-alfa-25: rgba(255, 255, 255, 0.25);
    --white-alfa-40: rgba(255, 255, 255, 0.10);
    --backdrop-filter: blur(5px);
    --box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    --gradient: linear-gradient(109.6deg, rgb(64, 30, 216) 11.2%, rgb(28, 5, 92) 100.2%);
}



/* Body */
body {
    font-family: 'Poppins', sans-serif;
    background-image: url('../image/register0.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Logo inside the form, top-left corner */
.form-logo {
    position: absolute;  /* positions relative to form-container */
    top: 10px;          /* slightly above the form */
    left: 20px;
    width: 80px;         /* adjust size */
    height: auto;
}

.form-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Form Container */
.form-container {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
}

form {
    background: var(--white-alfa-25);
    border: 2px solid var(--white-alfa-40);
    backdrop-filter: var(--backdrop-filter);
    box-shadow: var(--box-shadow);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}

form h3 {
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

/* Inputs and Select */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
select {
    width: 100%;
    padding: 1rem;
    margin: 0.8rem 0;
    border-radius: 8px;
    border: 2px solid var(--white-alfa-40);
    background: var(--white-alfa-25);
    font-size: 1rem;
    backdrop-filter: var(--backdrop-filter);
    box-shadow: var(--box-shadow);
}

input:focus,
select:focus {
    border-color: var(--main-color);
    outline: none;
}

/* Button */
button {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    color: #fff;
    background: var(--gradient);
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: linear-gradient(109.6deg, rgb(51, 2, 116) 11.2%, rgb(34, 76, 214) 100.2%);
}

/* Link */
p {
    margin-top: 1rem;
    font-size: 1rem;
}

p a {
    color: red;
    text-decoration: underline;
}

/* Messages */
form p.success {
    color: green;
    font-weight: bold;
    margin-top: 1rem;
}

form p.warning {
    color: red;
    font-weight: bold;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 600px) {
    form {
        padding: 1.5rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="date"],
    select,
    button {
        font-size: 1rem;
        padding: 0.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}
/* Upload Profile Image Section */
.upload-box {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 2px dashed #888;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto;
    cursor: pointer;
    transition: 0.3s;
    background: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.upload-box:hover {
    border-color: #4CAF50;
    background: #f1fff1;
}

.upload-box .upload-text {
    color: #666;
    font-size: 14px;
    text-align: center;
    padding: 5px;
}

.upload-box img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: none; /* hidden until user uploads */
}

/* Hide the raw file input */
#profile_image {
    display: none;
}

