#open-login-popup{
    color: inherit;
    text-decoration: inherit;
}

.login-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.login-popup-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 80%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.tab-buttons {
    display: flex;
    justify-content:center;
    gap: 20px;
    margin: 10px 0 30px 0;

}

.tab-button {
    border: 1px solid var(--light-grey-base);
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--light-grey-base);
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 40%;
}

.tab-button.active {
    background: white;
    color: var(--orange-trim);
    border: 1px solid var(--orange-trim);
    margin-bottom: -1px;
}

.tab-button:hover:not(.active) {
    background:var(--orange-trim);
    border: 1px solid var(--orange-trim);
    color: #FFF;

}

#login-popup-close {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color:  var(--dark-grey-base);
}

#login-popup-close:hover {
    color: var(--orange-trim);
}

.tab-content {
    display: none;
}

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

/* Social Login Styles */
.social-btn {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.social-btn:hover {

    border-color: var(--orange-trim);
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #666;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

/* Form Styles */
.login-name{
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.login-name div{
    flex: 1;
}

.login-field {
    margin-bottom: 15px;
}

.login-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.checkbox-field label {
    margin-bottom: 0;
    font-weight: normal;
    line-height: 1.4;
}

.checkbox-field a {
    color: var(--orange-trim);
    text-decoration: none;
}

.checkbox-field a:hover {
    text-decoration: underline;
}

/* Password Field Styles */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    flex: 1 1 auto;
}

.password-wrapper .toggle-password {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    margin-left: -35px;
    color: #888;
    padding: 0 8px;
    outline: none;
    z-index: 2;
}

.password-wrapper .toggle-password:focus {
    color:var(--orange-trim-passive);
}

.password-wrapper svg{
    width: 20px;
}
.login-field input:focus{
    border-color: var(--orange-trim);
}

.login-field input[type="text"],
.login-field input[type="email"],
.login-field input[type="password"],
.custom-reset-password-form input[type="password"],
.custom-reset-password-form input[type="text"]{
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.login-field input[type="submit"] {
    width: 100%;
	background: var(--orange-trim-passive);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.login-field input[type="submit"]:hover {
    background: var(--orange-trim);
}

#login-message,
#register-message {
    margin-top: 10px;
    text-align: center;
}

#login-message p,
#register-message p {
    margin: 0;
    padding: 8px;
    border-radius: 4px;
}

.login-field label{
    display: flex;
	width: 100%;
	align-items: center;
    flex: 1;
}

.login-field input{
    flex-shrink: 0;
}

.login-field p{
	margin: 0;
	flex: 1;
	
}

.login-field input[type="checkbox"]{
    /* Hide the default checkbox */
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    border: 1px solid var(--dark-grey-base);
    width: 22px;
    height: 22px;
    border-radius: 5px;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    margin-right: 5px;
    cursor: pointer;
}


.login-field input[type="checkbox"]:checked{
    background-color: #fff;
    border-color: var(--orange-trim);
}

.login-field input[type="checkbox"]:checked:after{
    content: '';
    position: absolute;
    left: 7px;
    top: 0px;
    width: 6px;
    height: 16px;
    border: solid var(--orange-trim);
    border-width: 0 1px 2px 0;
    border-radius: 2px;
    transform: rotate(45deg);
    display: block;
}

/* Password Strength Meter */
.password-strength-meter {
    margin-top: 8px;
}

.strength-bar {
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-text {
    font-size: 12px;
    font-weight: 500;
}

/* Strength levels */
.strength-very-weak {
    background-color: #ff4444;
}

.strength-weak {
    background-color: #ff8800;
}

.strength-fair {
    background-color: #ffbb33;
}

.strength-good {
    background-color: #00C851;
}

.strength-strong {
    background-color: #007E33;
}

.text-very-weak { color: #ff4444; }
.text-weak { color: #ff8800; }
.text-fair { color: #ffbb33; }
.text-good { color: #00C851; }
.text-strong { color: #007E33; }

/* Forgot password */
.forgot-password-link {
    text-align: right;
    align-self: center;
}

.forgot-password-link a {
    color: var(--orange-trim-passive);
    text-decoration: none;
    font-size: 14px;
}

.forgot-password-link a:hover {
    text-decoration: underline;
}

.back-to-login {
    text-align: center;
    margin-top: 15px;
}

.back-to-login a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.back-to-login a:hover {
    text-decoration: underline;
}

#forgot-password-form h3 {
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

#forgot-password-options-container{
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

#forgot-password-options-container > *{
    border: 1px solid;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 10px;
    width: 40%;
}

#forgot-password-options-container button{
    border-color: var(--orange-trim-passive);
    background-color: var(--orange-trim-passive);
    color: #FFF;
    flex: 1;
}

#forgot-password-options-container button:hover{
    border-color: var(--orange-trim);
    background-color: var(--orange-trim);
}

#forgot-password-options-container a{
    border-color: var(--orange-trim-passive);
    color: var(--orange-trim-passive);
    text-decoration: none;
    flex: 1;
    text-align: center;
}

#forgot-password-options-container a:hover{
    border-color: var(--orange-trim);
    color: var(--orange-trim);
}

.custom-reset-password-form{
	max-width: 400px;
	margin: 40px auto;
	min-width: 340px;
}

.custom-reset-password-form h2{
	text-align: center;
	margin-top: 40px;
	font-size: 1.6rem;
}

.custom-reset-password-form label{
	margin-top: 20px;
	margin-bottom: 5px;	
	display: block;
}

.custom-reset-password-form input{
	background-color: rgb(232, 240, 254);
}

.custom-reset-password-form div{
	margin-bottom: 8px;
}

.buttonA{
    padding: 10px 20px;
    font-size: 1rem;
}

.buttonA, .buttonB{
    cursor: pointer;
    font-size: 1rem;
    border-radius: 10px;
    width: 100%;	
}

.buttonB{
	margin-top: 10px;
    border: 1px solid;
    padding: 5px 10px;
    font-size: 1rem;	
}

.buttonA{
    border-color: var(--orange-trim-passive);
    background-color: var(--orange-trim-passive);
    color: #FFF;
}

.buttonA:hover{
    border-color: var(--orange-trim);
    background-color: var(--orange-trim);
}

.buttonB{
    border-color: var(--orange-trim);
    color: var(--orange-trim);
	text-decoration: none;
}

.buttonB:hover{
    background-color: var(--orange-trim);
	color: #FFF;
}


.buttonC{
	width: 100%;
    background: var(--orange-trim-passive);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.buttonC:hover{
    background: var(--orange-trim);
    color: white;
    cursor: pointer;
}


#reset-password-form button{
	margin-top: 15px;
}

#reg-processing-msg, #log-processing-msg, #reset-pw-msg{
	margin-top: 20px;
}

#reg-processing-msg, #log-processing-msg p, #reset-pw-msg p{
	width: 100%;
	text-align: center;
	margin: 10px 0;
	color: var(--orange-trim-passive);
}

.msg-lineA, .msg-lineB, .msg-lineC{
	text-align: center;
}

.msg-lineC{
	color: var(--orange-trim-passive);
	font-weight: bold;
}

#process-animation{
	display: block;
	width: 30px;
	height: 30px;
	border: 4px solid #CCC;
	border-top-color: var(--orange-trim-passive);
	border-radius: 50%;
	animation: process_loading 1s ease infinite;
	margin-top: 20px;
}

#reg-processing-msg #process-animation, #log-processing-msg #process-animation, #reset-pw-msg #process-animation{
	margin: 0 auto;
}

#reset-pw-msg div{
	color: var(--orange-trim);
	text-align: center;
	font-size: 1rem;
	margin-top: 20px;
}

@keyframes process_loading{
	from{
		transform: rotate(0turn);
	}
	to{
		transform: rotate(1turn);
	}
}


