/* --- Local Font Definition --- */
@font-face {
    font-family: 'Roboto';
    src: url('fonts/roboto-regular.woff2') format('woff2'),
         url('fonts/roboto-regular.woff') format('woff');
    font-weight: 400; /* Regular */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/roboto-medium.woff2') format('woff2'),
         url('fonts/roboto-medium.woff') format('woff');
    font-weight: 500; /* Medium */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/roboto-bold.woff2') format('woff2'),
         url('fonts/roboto-bold.woff') format('woff');
    font-weight: 700; /* Bold */
    font-style: normal;
    font-display: swap;
}

/* --- General Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
}
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    background-color: #f0f2f5;
    overflow: hidden; /* Prevent body scrollbar */
}
.main-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* --- Left Side: Content Panel (from more.php) --- */
.content-panel {
    flex-basis: 60%;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    overflow: hidden;
}
.content-panel::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 960px;
    text-align: center;
}
.logo img {
    height: 50px;
    margin-bottom: 20px;
}
.youtube-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.value-points-panel {
    margin-top: 30px;
    text-align: left;
    color: #fff;
}
.value-points-panel h3 {
    font-size: 1.7rem;
    margin-bottom: 20px;
    text-align: center;
}
.value-points-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.value-points-panel li {
    display: flex;
    align-items: center; /* Changed from flex-start to center */
    margin-bottom: 15px; /* space between lines */
    font-size: 1.1rem;
}
.value-points-panel .icon {
    flex-shrink: 0;
    margin-right: 15px;
    width: 28px;
    height: 28px;
    color: #fd4157;
}

/* --- Right Side: Form Panel (from index.php) --- */
.form-panel {
    flex-basis: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background-color: #ffffff;
    overflow: hidden;
}
.form-container {
    width: 100%;
    max-width: 400px;
}
.form-container h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
}
input[type="email"], input[type="password"], input[type="text"], select {
    width: 100%;
    padding: 14px;
    margin: 2px 0 8px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f9f9f9;
    transition: all 0.2s ease-in-out;
}
/* ACCESSIBILITY: Visible focus styles for all interactive elements */
a:focus,
button:focus,
input:focus,
select:focus,
[tabindex]:not([tabindex="-1"]):focus {
    outline: 3px solid #fd4157 !important;
    outline-offset: 2px;
    box-shadow: none !important; /* Override other focus styles */
}

input:focus, select:focus {
    border-color: rgba(253, 65, 87, 0.8);
    box-shadow: 0 0 8px rgba(253, 65, 87, 0.5);
    background-color: #fff;
}
.birthdate-select {
    display: flex;
    gap: 10px;
    margin-top: 2px;
}
.birthdate-select select {
    flex: 1;
    margin: 0;
}
label {
    font-size: 1rem; /* UPDATED: Was 15px */
    font-weight: 600;
    display: block;
    text-align: left;
    user-select: none;
    color: #000;
    margin: 8px 0 1px 0;
}

/* --- Fieldset and Legend Styles --- */
.birthdate-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}
.birthdate-fieldset legend {
    font-size: 1rem; /* UPDATED: Was 15px */
    font-weight: 600;
    color: #000;
    padding: 0;
    margin: 8px 0 1px 0;
    width: 100%;
}
/* --- --- */

label.terms-label {
    display: flex;
    align-items: center; /* Vertically center checkbox and text */
    font-weight: 400;
    text-align: left;
    margin-top: 15px;
    font-size: 1rem; /* UPDATED: Was 15px */
}
label.terms-label input {
    margin-right: 10px;
    margin-top: 0; /* Removed top margin */
    flex-shrink: 0;
    /* Make checkbox scale with font size */
    width: 1em;
    height: 1em;
    min-width: 16px;
    min-height: 16px;
}
label.terms-label a {
    color: #000000;
    text-decoration: underline;
    font-weight: 700;
}
label.terms-label a:hover {
    text-decoration: none;
}
button {
    width: 100%;
    padding: 14px;
    background: #c60016;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease-in-out;
    margin-top: 20px;
}
button:hover {
    background: #a80014;
}
.password-input-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}
.password-input-container input {
    padding-right: 50px;
}
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #666;
    width: auto;
    height: auto;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.toggle-password:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
}

.toggle-password:focus {
    outline: 2px solid #fd4157;
    outline-offset: 2px;
    background-color: rgba(253, 65, 87, 0.1);
}

.eye-icon {
    width: 20px;
    height: 20px;
    transition: all 0.2s ease-in-out;
}

.toggle-password:hover .eye-icon {
    transform: scale(1.1);
}
.link-active {
    text-decoration: underline;
}
.link-active:hover {
    text-decoration: none;
}
#register h2 a {
    color: black;
    font-size: inherit;
}
.error-message {
    color: #c70017; /* A standard red for errors */
    font-size: 13px;
    margin: 3px 0 8px 0;
    display: none;
    font-weight: bold;
}

/* New style for the login link below the button */
.login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 1rem; /* UPDATED: Was 15px */
    color: #000;
}
.login-link a {
    color: #000000;
    font-weight: 700;
    text-decoration: underline;

}
.login-link a:hover {
    text-decoration: none;
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
        height: auto;
    }
    body {
        overflow: auto;
    }
    .content-panel, .form-panel {
        flex-basis: auto;
    }
    .content-panel {
         padding: 40px 20px;
    }
}

/* Style for checkbox when it is focused (clicked or tabbed to) */
#terms:focus {
    outline: none; /* Removes the default blue outline */
    box-shadow: 0 0 8px rgba(253, 65, 87, 0.5); /* Adds a pink/red glow */
}