@font-face {
    font-family: 'Figtree';
    src: url('https://hypr.contact/assets/fonts/Figtree-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Figtree';
    src: url('https://hypr.contact/assets/fonts/Figtree-ExtraBold.ttf') format('truetype');
    font-weight: 800; /* ExtraBold is typically 800 */
    font-style: normal;
}

:root {
    --background-color-light: #f9f9f9;
    --text-color-light: #000000;
    --subtitle-color-light: #555555;
    --input-bg-light: #f9f9f9;
    --input-border-light: #cccccc;
    --input-focus-border-light: #000000; /* Will be overridden by accent */
    --btn-bg-light: #000000; /* Will be overridden by accent for .btn */
    --btn-text-light: #ffffff; /* Will be overridden by accent for .btn */
    --btn-hover-bg-light: #333333; /* Will be overridden by accent for .btn */
    --container-bg-light: #ffffff;
    --container-border-light: #e0e0e0;
    --link-color-light: #000000; /* Will be overridden by accent */

    --background-color-dark: #121212;
    --text-color-dark: #e0e0e0;
    --subtitle-color-dark: #a0a0a0;
    --input-bg-dark: #2c2c2c;
    --input-border-dark: #555555;
    --input-focus-border-dark: #e0e0e0; /* Will be overridden by accent */
    --btn-bg-dark: #e0e0e0; /* Will be overridden by accent for .btn */
    --btn-text-dark: #121212; /* Will be overridden by accent for .btn */
    --btn-hover-bg-dark: #b0b0b0; /* Will be overridden by accent for .btn */
    --container-bg-dark: #1e1e1e;
    --container-border-dark: #3c3c3c;
    --link-color-dark: #e0e0e0; /* Will be overridden by accent */

    /* Purple Accent Colors - Light Theme */
    --accent-color: #b55ad6; /* Primary Purple */
    --accent-color-hover: #8d43a8; /* Darker Purple for hover */
    --accent-text-color:  var(--background-color-light); /* Text on primary purple */
    --input-focus-shadow-color: #b55cd640; /* Shadow for purple focus */
}

::selection { background-color: var(--accent-color); color: var(--accent-text-color); }
::-moz-selection { background-color: var(--accent-color); color: var(--accent-text-color); }

body {
    font-family: 'Figtree', sans-serif;
    background-color: var(--background-color-light);
    color: var(--text-color-light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease; /* For smooth theme transition */
}

body.dark-theme {
    --background-color-light: var(--background-color-dark);
    --text-color-light: var(--text-color-dark);
    --subtitle-color-light: var(--subtitle-color-dark);
    --input-bg-light: var(--input-bg-dark);
    --input-border-light: var(--input-border-dark);
    /* --input-focus-border-light will be handled by --accent-color override */
    /* --btn-bg-light will be handled by --accent-color override */
    /* --btn-text-light will be handled by --accent-text-color override */
    /* --btn-hover-bg-light will be handled by --accent-color-hover override */
    --container-bg-light: var(--container-bg-dark);
    --container-border-light: var(--container-border-dark);
    /* --link-color-light will be handled by --accent-color override */

    /* Purple Accent Colors - Dark Theme */
    --accent-color: #dd86fc;
    --accent-color-hover: #be70db;
    --accent-text-color:  var(--background-color-dark); /* Black text on the lighter dark mode purple */
    --input-focus-shadow-color: #dd86fc59;
}

body.dark-theme .logo { filter: invert(1); }

.container {
    width: 100%;
    max-width: 420px;
}

.form-container {
    background-color: var(--container-bg-light);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid var(--container-border-light);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.logo {
    width: 80px;
    height: auto;
}

.footer-brand .logo {
    width: 240px;
}

h1 {
    font-family: 'Figtree', sans-serif;
    font-weight: 800; /* ExtraBold */
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--text-color-light);
    transition: color 0.3s ease;
}

.subtitle {
    font-size: 16px;
    color: var(--subtitle-color-light);
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: normal; /* Regular */
    color: var(--text-color-light);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--input-border-light);
    border-radius: 6px;
    font-size: 16px;
    font-family: 'Figtree', sans-serif;
    box-sizing: border-box;
    background-color: var(--input-bg-light);
    color: var(--text-color-light);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-color); /* Use accent color for focus border */
    box-shadow: 0 0 0 2px var(--input-focus-shadow-color); /* Use accent shadow */
}

.btn {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--accent-color); /* Use accent color for button background */
    color: var(--accent-text-color); /* Use accent text color */
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-family: 'Figtree', sans-serif;
    font-weight: 800; /* ExtraBold */
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn:hover {
    background-color: var(--accent-color-hover); /* Use accent hover color */
}

.toggle-link {
    margin-top: 25px;
    font-size: 14px;
    color: var(--subtitle-color-light);
    transition: color 0.3s ease;
}

.toggle-link a {
    color: var(--accent-color); /* Use accent color for links */
    font-weight: 800; /* ExtraBold */
    text-decoration: none;
    transition: color 0.3s ease;
}

.toggle-link a:hover {
    text-decoration: underline;
    color: var(--accent-color-hover); /* Optional: use hover accent color for link hover */
}

/* Message Area Styling */
.message-area {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    display: none; /* Hidden by default, shown by JS */
}

.message-area.success-message {
    background-color: #d4edda; /* Light green */
    color: #155724; /* Dark green */
    border: 1px solid #c3e6cb;
    display: block;
}

.message-area.error-message {
    background-color: #f8d7da; /* Light red */
    color: #721c24; /* Dark red */
    border: 1px solid #f5c6cb;
    display: block;
}

/* Styling for the verification container's additional actions */
.additional-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent-color);
    font-family: 'Figtree', sans-serif;
    font-weight: 800; /* ExtraBold */
    font-size: 14px;
    cursor: pointer;
    padding: 5px 0; /* Minimal padding */
    text-decoration: none;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: var(--accent-color-hover);
    text-decoration: underline;
}

#verify-email-display {
    font-weight: bold; /* Make the displayed email stand out a bit */
}

/* Input for verification code - basic styling, can be enhanced */
#verification-code {
    text-align: center; /* Center the code input */
    font-size: 1.2em; /* Make the code digits a bit larger */
    letter-spacing: 0.2em; /* Add some spacing between digits */
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .form-container {
        padding: 30px;
    }

    h1 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 14px;
    }
}

/* Theme toggle icon styles */
#theme-toggle {
    padding: 10px; /* Provides a clickable area around the 24x24 SVG */
    color: var(--text-color-light); /* SVG inherits this for its fill color */
    background-color: transparent; /* No background by default */
    border: none; /* No border by default */
    border-radius: 50%; /* Makes the hover background circular */
    cursor: pointer;
    z-index: 1000;
    transition: color 0.3s ease, background-color 0.3s ease;
    display: flex; /* Helps in centering the SVG icon */
    align-items: center;
    justify-content: center;
    line-height: 0; /* Prevents extra space if SVG is treated as inline-block with line height */
}

#theme-toggle.topright {
    position: fixed;
    top: 1rem;
    right: 1rem;
}

#theme-toggle svg {
    display: block; /* Ensures SVG behaves predictably */
}

#theme-toggle:hover {
    color: var(--accent-color); /* Icon (SVG fill) changes to the accent color on hover */
    background-color: var(--input-bg-light); /* Adds a subtle, theme-aware background on hover */
}