* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.login-section {
    background: linear-gradient(135deg, #701f27 0%, #006D76 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;

}

.container {
    background-color: #f5f5f5;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tab-header {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-button {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.tab-button.active {
    color: #333;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #701F27;
    border-radius: 2px;
}

.form-content {
    display: none;
}

.form-content.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #701F27;
}

.form-group input::placeholder {
    color: #999;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    padding-right: 50px;
}

.form-group .select-wrapper {
    position: relative;
}

.form-group .select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 12px;
    pointer-events: none;
}

.form-group select option {
    padding: 10px;
    background-color: white;
    color: #333;
}

.form-group select option[value=""] {
    color: #999;
}

.form-group select:invalid {
    color: #999;
}

.form-group select:valid {
    color: #333;
}

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    color: #701F27;
    transform: translateY(-50%);
}

.toggle-password svg,
.toggle-password img {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
    filter: brightness(0) saturate(100%) invert(42%) sepia(8%) saturate(12%) hue-rotate(314deg) brightness(95%) contrast(88%);
}

.toggle-password:hover svg,
.toggle-password:hover img {
    filter: brightness(0) saturate(100%) invert(12%) sepia(87%) saturate(3151%) hue-rotate(338deg) brightness(91%) contrast(94%);
}

.toggle-password .eye-icon {
    display: none;
}

.toggle-password .eye-slash-icon {
    display: block;
}

.forgot-pwd {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
}

.submit-button {
    width: 100%;
    padding: 15px;
    background-color: #701F27;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 20px;
}

.submit-button:hover {
    background-color: #ffffff;
    color: #701F27;
    outline: 1px solid #701F27;
}

.forgot-password {
    color: #666;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

.forgot-password:hover {
    color: #701F27;
}

.phone-container {
    display: flex;
    gap: 10px;
    position: relative;
    align-items: stretch;
}

.country-selector {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.phone-input-wrapper {
    flex: 1;
}

.country-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 12px;
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 85px;
    height: 100%;
}

.country-btn:hover {
    background-color: #f8f8f8;
    border-color: #701F27;
}

.country-btn:focus {
    outline: none;
    border-color: #701F27;
}

.country-btn .flag {
    font-size: 18px;
}

.country-btn .dial-code {
    font-size: 14px;
    color: #555;
}

.country-btn .dropdown-arrow {
    font-size: 10px;
    color: #666;
    transition: transform 0.3s ease;
}

.country-btn.open .dropdown-arrow {
    transform: rotate(180deg);
}

.phone-input-wrapper input[type="tel"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    transition: border-color 0.3s ease;
    height: 100%;
}

.phone-input-wrapper input[type="tel"]:focus {
    outline: none;
    border-color: #701F27;
}

.phone-input-wrapper input[type="tel"]::placeholder {
    color: #999;
}

.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 2px solid #701F27;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    max-height: 320px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.country-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.country-search {
    padding: 12px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.country-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background-color: #f9f9f9;
}

.country-search input:focus {
    outline: none;
    border-color: #701F27;
    background-color: white;
}

.countries-container {
    flex: 1;
    overflow-y: auto;
    max-height: 240px;
}

.popular-countries,
.all-countries {
    overflow-y: auto;
}

.country-dropdown .popular-countries,
.country-dropdown .all-countries {
    max-height: none;
    overflow: visible;
}

.section-title {
    display: block;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 1;
}


.country-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: none;
    width: 100%;
    text-align: left;
    background: none;
    font-size: 14px;
}

.country-item:hover {
    background-color: #f5f5f5;
}

.country-item.selected {
    background-color: #701F27;
    color: white;
}

.country-item .flag {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.country-item .country-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.country-item .country-name {
    font-weight: 500;
}

.country-item .dial-code {
    color: #666;
    font-size: 13px;
}

.country-item.selected .dial-code {
    color: #fff;
}

.countries-container::-webkit-scrollbar {
    width: 6px;
}

.countries-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.countries-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.countries-container::-webkit-scrollbar-thumb:hover {
    background: #701F27;
}

.user-type-selector {
    margin-bottom: 30px;
}

.user-type-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.user-type-options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.user-type-option {
    flex: 1;
    position: relative;
}

.user-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.user-type-card {
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.user-type-card:hover {
    border-color: #701F27;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(112, 31, 39, 0.15);
}

.user-type-option input[type="radio"]:checked + .user-type-card {
    background: #701F27;
    color: white;
    border-color: #701F27;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(112, 31, 39, 0.3);
}

.user-type-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 10px;
    display: block;
    filter: brightness(0) saturate(100%) invert(42%) sepia(8%) saturate(12%) hue-rotate(314deg) brightness(95%) contrast(88%);
    transition: filter 0.3s ease;
}

.user-type-option input[type="radio"]:checked + .user-type-card .user-type-icon {
    filter: brightness(0) saturate(100%) invert(100%);
}

.user-type-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
        max-width: 350px;
    }

    .country-dropdown {
        min-width: 250px;
        max-height: 200px;
    }

    .countries-container {
        max-height: 140px;
    }

    .country-btn {
        padding: 15px 10px;
        min-width: 75px;
    }

    .country-btn .dial-code {
        font-size: 13px;
    }
}

.phone-input-wrapper input[type="tel"].invalid {
    border-color: #e74c3c !important;
}

.phone-input-wrapper input[type="tel"].valid {
    border-color: #27ae60 !important;
}

.field-error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.input-error {
    border-color: #ef4444 !important;
}

.role-selection {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.role-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s;
    flex: 1;
}

.role-option:hover {
    border-color: #701F27;
    background-color: #fef2f2;
}

.role-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.role-option input[type="radio"]:checked + span {
    color: #701F27;
    font-weight: 600;
}

.role-option:has(input[type="radio"]:checked) {
    border-color: #701F27;
    background-color: #fef2f2;
}
