﻿:root {
    --primary: #ffb800;
    --primary-hover: #ffec6e;
    --text: #1e293b;
    --light-text: #64748b;
    --border: #e2e8f0;
    --bg: #f8fafc;
    --white: #ffffff;
    --success: #10b981;
    --error: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

form {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main container for positioning the dropdown menu */
.language-dropdown {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000; /* Ensures it appears above other content */
}

/* The main button that the user sees and clicks */
.language-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between icons and text */
    padding: 10px 15px;
    background-color: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

    .language-dropdown-toggle:hover {
        background-color: #f7f7f7;
        border-color: #c0c0c0;
    }

    .language-dropdown-toggle:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); /* Accessibility focus ring */
    }

    /* Styling for the icons inside the button */
    .language-dropdown-toggle .fa-globe {
        color: #333;
    }

    .language-dropdown-toggle .fa-chevron-down {
        color: #888;
        font-size: 12px;
        transition: transform 0.3s ease; /* Animate the caret rotation */
    }

/* Rotate the caret when the menu is open */
.language-dropdown.open .fa-chevron-down {
    transform: rotate(180deg);
}

/* The menu that pops up */
.language-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px); /* Position it 5px below the button */
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    padding: 5px;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

    /* The class that JavaScript will add to show the menu */
    .language-dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

/* Styling for the individual language links (our <a> tags) */
.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

    .language-option:hover {
        background-color: #f0f0f0;
        color: #000;
    }

    .language-option img {
        width: 20px;
        height: auto;
    }


.signin-link {
    text-align: center;
    font-size: 14px;
    color: var(--light-text);
}

    .signin-link a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 500;
        margin-left: 4px;
        transition: color 0.2s ease;
    }

        .signin-link a:hover {
            color: var(--primary-hover);
            text-decoration: underline;
        }


.register-container {
    background-color: var(--white);
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    padding: 40px;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    margin-top: 20px;
}

    .register-container:hover {
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

.logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

    .logo img {
        height: 48px;
    }

.progress-bar {
    height: 6px;
    background-color: var(--border);
    border-radius: 3px;
    margin-bottom: 32px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary);
    width: 20%;
    transition: width 0.3s ease;
}

h2 {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
}

.step-subtitle {
    color: var(--light-text);
    text-align: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
    animation: fadeIn 0.4s ease;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

input, select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: var(--bg);
}

    input:focus, select:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    }

.otp-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.otp-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    margin: 0 5px;
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

    .btn:hover {
        background-color: var(--primary-hover);
        transform: translateY(-1px);
    }

    .btn:active {
        transform: translateY(0);
    }

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
    border: 1px solid var(--primary);
    margin-top: 12px;
}

    .btn-secondary:hover {
        background-color: var(--bg);
    }

.hidden {
    display: none;
}

.password-strength {
    height: 4px;
    background-color: var(--border);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.error-message {
    color: var(--error);
    font-size: 13px;
    margin-top: 4px;
    display: none;
}

.success-message {
    color: var(--success);
    font-size: 13px;
    margin-top: 4px;
    display: none;
}

.back-link {
    display: flex;
    align-items: center;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .back-link:hover {
        color: var(--primary-hover);
        text-decoration: underline;
    }

    .back-link svg {
        margin-right: 6px;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .register-container {
        padding: 32px 24px;
    }

    .otp-input {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }
}
