@font-face {
    font-family: "Tektur";
    src: url(Tektur-VariableFont_wdth\,wght.ttf);
}

:root {
    --primary-yellow: #FFD700;
    --dark: #000000;
    --pure-white: #FFFFFF;
    --font-family-Tektur: "Tektur", sans-serif;
    --bs-btn-primary: #FFD700;
}

body {
    background: linear-gradient(to left, var(--dark) 50%, var(--primary-yellow) 100%);
    font-family: 'Tektur', sans-serif;
    color: var(--dark);
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 900px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    overflow: hidden;
}

.welcome-section {
    background: linear-gradient(135deg, var(--dark) 60%, var(--primary-yellow) 150%);
    color: var(--pure-white);
    padding: 60px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.15);
}

.welcome-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -30px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.1);
}

.welcome-section h1 {
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.welcome-section h1 span {
    color: var(--primary-yellow);
}

.welcome-section p {
    opacity: 0.9;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

.form-section {
    background-color: var(--pure-white);
    padding: 60px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-title {
    font-weight: 700;
    margin-bottom: 20px !important;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-control {
    border: none;
    border-bottom: 2px solid #ddd;
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
    background-color: transparent;
    font-family: 'Tektur', sans-serif;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-yellow);
}

label {
    position: absolute;
    left: 0;
    top: 5px;
    color: #777;
    transition: all 0.2s ease;
    pointer-events: none;
    font-size: 14px;
    font-weight: 500;
}

.form-control:focus+label,
.form-control:not(:placeholder-shown)+label {
    top: -12px;
    font-size: 12px;
    color: var(--primary-yellow);
    font-weight: 600;
}

.form-control:focus+label {
    text-shadow: 0 0 2px rgba(255, 215, 0, 0.3);
}

#email::placeholder{
    color: transparent !important;
}

#email:focus::placeholder{
    color: #aaa !important;
}

.btn-login {
    background-color: var(--primary-yellow);
    color: var(--dark);
    border: none;
    padding: 12px 12px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.btn-login:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.registerLink a {
    text-decoration: none;
    color: var(--dark);
}

.registerLink a:hover {
    color: var(--primary-yellow);
    text-decoration: underline;
}

.btn-login:hover:not(:disabled) {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
    display: none;
}

.success-message {
    color: green;
    font-size: 0.9em;
    margin-top: 5px;
    display: none;
}

/* Password strength bar */
.password-strength {
    height: 6px;
    width: 100%;
    margin-top: 5px;
    background-color: #ddd;
    border-radius: 3px;
    display: none;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.3s ease-in-out;
}

.weak {
    background-color: #ff4757;
}

.medium {
    background-color: #ffa502;
}

.strong {
    background-color: #2ed573;
}

/* Container to hold flag, country code, and input */
.phone-input-container {
    display: flex;
    align-items: center;
    padding: 0px;
    border-bottom: 2px solid #ddd;
    width: 100%;
    outline: none;
    position: relative;
    background-color: transparent !important;
}

.phone-input-container:focus-within {
    border-color: var(--primary-yellow);
}

.phone-input-container input {
    border: none !important;
    outline: none !important;
    background: transparent;
    flex: 1;
}

/* Dropdown trigger (flag + code) */
.country-selector {
    display: flex;
    align-items: center;
    padding: 5px;
    cursor: pointer;
    background: transparent;
    border: none;
    font-size: 16px;
    outline: none;
    color: var(--dark);
    margin-right: 10px;
}

/* Flag inside input */
.flag-icon {
    width: 25px;
    height: 18px;
    border-radius: 3px;
    margin-right: 5px;
}

/* Country dropdown */
.country-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    color: var(--dark);
    background: #fff;
    z-index: 1000;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Dropdown options */
.country-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.country-option:hover {
    background: #f8f9fa;
}

.country-option:last-child {
    border-bottom: none;
}

.country-option img {
    width: 20px;
    height: 15px;
    margin-right: 8px;
    border-radius: 2px;
}

.loading-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid var(--dark);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.loading-spinner.show {
    display: block;
}

@keyframes spin {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }

    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

.rate-limit-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 0.9em;
    display: none;
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    z-index: 10;
}

/* Medium Screen */
@media (max-width: 992px) and (min-width: 768px) {
    .login-card {
        width: 65%;
        height: auto;
        flex-direction: column;
    }

    .welcome-section {
        display: none;
    }
}

/* Small Screen */
@media (max-width: 767px) and (min-width: 576px) {
    .login-card {
        width: 75%;
        height: auto;
        flex-direction: column;
    }

    .welcome-section {
        display: none;
    }
}

/* XX-Small Screen */
@media (max-width: 575px) {
    .login-card {
        width: 95%;
        height: 95%;
        flex-direction: column;
    }

    .welcome-section {
        display: none;
    }
    
    .form-section {
        padding: 30px;
    }
}

    .login-type-toggle {
        display: flex;
        margin-bottom: 20px;
        border-radius: 5px;
        overflow: hidden;
        border: 2px solid var(--primary-yellow);
    }

    .toggle-option {
        flex: 1;
        padding: 10px;
        text-align: center;
        cursor: pointer;
        background-color: #f8f9fa;
        transition: all 0.3s ease;
    }

    .toggle-option.active {
        background-color: var(--primary-yellow);
        color: var(--dark);
        font-weight: 600;
    }

    .toggle-option:hover {
        background-color: #e6c200;
    }
 .hidden {
        display: none;
    }