:root {
    --primary-gold: #FFD700;
    --primary-blue: #1a237e;
    --light-blue: #303f9f;
    --white: #ffffff;
    --error-red: #ff3d3d;
    --success-green: #4CAF50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    width: 100px;
    /* background-color: var(--primary-gold); */
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* font-size: 24px; */
    /* color: var(--primary-blue); */
    /* font-weight: bold; */
}

h1 {
    color: var(--primary-blue);
    font-size: 24px;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

/* Initial state for hidden elements */
.form-group.hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease-in-out, max-height 0.5s ease-in-out, margin-top 0.5s ease-in-out, margin-bottom 0.5s ease-in-out; /* Add transitions for margin */
    margin-top: 0; /* Remove margin when hidden */
    margin-bottom: 0; /* Remove margin when hidden */
}

/* State when elements are shown */
.form-group:not(.hidden) {
    opacity: 1;
    max-height: 500px; /* Adjust as needed for maximum expected height */
    transition: opacity 0.5s ease-in-out, max-height 0.5s ease-in-out, margin-top 0.5s ease-in-out, margin-bottom 0.5s ease-in-out; /* Add transitions for margin */
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-blue);
    font-weight: 500;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    border-color: var(--primary-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

select {
    cursor: pointer;
    background-color: white;
}

button {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: var(--light-blue);
    transform: translateY(-2px);
}

.login-link {
    text-align: center;
    margin-top: 20px;
    color: var(--white);
}

.login-link a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

.password-strength {
    margin-top: 8px;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 12px;
    margin-top: 4px;
}

.error {
    color: var(--error-red);
    font-size: 14px;
    margin-top: 4px;
}