/* Full Height Background Without Scroll */
html, body {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Main Container for Centering */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-color: var(--bg-color);
}

/* Form Container */
.form-container {
    width: 100%;
    max-width: 400px;
    padding: 30px 20px;
    background-color: var(--form-bg);
    border-radius: 12px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--form-border);
    text-align: center;
}

.form-container h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #4A90E2;
    font-weight: 600;
}

/* Input Fields */
input {
    width: 100%;
    height: 40px;
    margin: 12px 0;
    padding: 14px 16px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--text-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    text-indent: 10px; /* Add slight indentation to the left for the input text */
}

input:focus {
    border-color: #4A90E2;
    outline: none;
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0px 0px 8px rgba(74, 144, 226, 0.5);
}

input::placeholder {
    color: var(--placeholder-color);
}

/* Password Toggle */
.password-toggle {
    position: relative;
}

.password-toggle-icon {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.password-toggle-icon:hover {
    color: #4A90E2;
}

/* Flex Container for First Name and Last Name */
.flex-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.flex-container input {
    width: 48%;
}

/* Buttons */
button {
    width: 100%;
    height: 40px; /* Match input height */
    margin-top: 20px;
    padding: 14px 16px; /* Adjust padding to align with input fields */
    font-size: 1.1rem;
    color: #ffffff;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    border: 2px solid #4A90E2; /* Added border */
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

button:hover {
    background: linear-gradient(135deg, #357ABD, #2B5C8E);
    border-color: #2B5C8E; /* Change border color on hover */
    transform: translateY(-3px);
    box-shadow: 0px 4px 10px rgba(74, 144, 226, 0.4);
}

button:active {
    transform: translateY(0);
}

/* Terms Checkbox Alignment */
.terms {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    margin: 10px 0;
    color: var(--text-color);
}

.terms input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

.terms a {
    color: var(--link-color);
    text-decoration: underline;
}

.terms a:hover {
    text-decoration: none;
}

/* Notifications */
.notification {
    display: none;
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
}

.notification.error {
    background-color: #721c24;
    color: #f8d7da;
    border: 1px solid #420d0f;
}

/* Password Criteria */
.password-criteria {
    margin: 20px 0;
    padding: 15px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    text-align: left;
}

.password-criteria p {
    font-size: 0.75rem;
    color: #cccccc;
    margin: 6px 0;
    padding-left: 20px;
    position: relative;
}

.password-criteria p::before {
    content: "○";
    position: absolute;
    left: 0;
    font-size: 1rem;
    color: #cccccc;
}

.password-criteria p.valid {
    color: #4caf50;
}

.password-criteria p.valid::before {
    content: "✔";
    color: #4caf50;
}

.password-criteria p.invalid {
    color: #f44336;
}

.password-criteria p.invalid::before {
    content: "✘";
    color: #f44336;
}

/* Footer */
.footer {
    margin-top: 20px;
    font-size: 0.9rem;
}

.footer a {
    color: var(--link-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Theme Variables */
:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --form-bg: rgba(255, 255, 255, 0.1);
    --form-border: #444;
    --button-bg: #4A90E2;
    --link-color: #4A90E2;
    --placeholder-color: rgba(200, 200, 200, 0.7);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-color: #111827;
    --text-color: #f9fafb;
    --form-bg: rgba(255, 255, 255, 0.05);
    --form-border: #555;
    --button-bg: #374151;
    --placeholder-color: rgba(216, 216, 216, 0.7);
}
