/* Basic modal layout */
.olte-auth-open {
    overflow: hidden;
}
#olte-auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9997;
}
#olte-auth-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
#olte-auth-modal {
    position: fixed;
    inset: 0;
	padding: 0 3%;
	box-sizing: border-box;
    display: none;
    place-items: center;
    z-index: 9998;
}
#olte-auth-modal.open {
    display: grid;
}
#olte-auth-content {
    width: 94%;
    max-width: 440px;
    background: #fff;
	box-sizing: border-box;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 30px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.2s ease;
}
#olte-auth-modal.open #olte-auth-content {
    transform: translateY(0);
    opacity: 1;
}
#olte-auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}
#olte-auth-title {
    font-size: 20px;
    font-weight: 500;
}
#olte-auth-close {
    border: none;
    background: transparent;
    font-size: 28px;
	font-weight:400;
    line-height: 1;
    cursor: pointer;
	color: #606060;
}
#olte-auth-close:hover {
	color: #2b5d50;
}

/* Forms */
.olte-auth-form .field {
    margin-bottom: 15px;
}
.olte-auth-form label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
}
.olte-auth-form input[type="email"],
.olte-auth-form input[type="text"],
.olte-auth-form input[type="password"] {
    width: 100%;
    padding: 15px 15px;
	box-sizing: border-box;
    border: 1px solid #d0d6e0;
    border-radius: 8px;
	color: #000000cc;
    font-size: 16px;
}

.olte-auth-form input[type="email"]::placeholder,
.olte-auth-form input[type="text"]::placeholder,
.olte-auth-form input[type="password"]::placeholder {
	color: #6e6e6e;
}

.olte-auth-form input[type="email"]:focus,
.olte-auth-form input[type="text"]:focus,
.olte-auth-form input[type="password"]:focus {
	border: 1px solid var(--green);
}

.olte-auth-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}
.olte-auth-actions .btn {
    flex: 1;
    padding: 15px 30px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    background: #6790d0;
    color: #fff;
}
.olte-auth-actions .btn.secondary {
    background: #eef3fb;
    color: #30508a;
}
.olte-auth-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    margin-top: 6px;
}
.olte-auth-links a {
    color: #30508a;
    text-decoration: none;
}
.olte-auth-links a:hover {
    text-decoration: underline;
}

/* Messages */
.message {
    display: none;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 10px;
}
.message.info {
    background: #f3f6fb;
    color: #30508a;
}
.message.error {
    background: #fde8e8;
    color: #8a2f2f;
}
.message.success {
    background: #e6f6e8;
    color: #1f6f3f;
}

/* Strength meter */
#register-strength {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
#register-strength-bar {
    height: 8px;
    border-radius: 4px;
    background: #e9edf7;
    flex: 1;
    position: relative;
    overflow: hidden;
}
#register-strength-bar::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #d65454, #f7b267, #ffc857, #54b36d, #2f9e44);
    transition: width 0.2s ease;
}
#register-strength-bar[data-score="0"]::after {
    width: 0%;
}
#register-strength-bar[data-score="1"]::after {
    width: 25%;
}
#register-strength-bar[data-score="2"]::after {
    width: 50%;
}
#register-strength-bar[data-score="3"]::after {
    width: 75%;
}
#register-strength-bar[data-score="4"]::after {
    width: 100%;
}
#register-strength-text {
    font-size: 12px;
    color: #30508a;
}

/* Social */
.auth-social {
    margin-top: 10px;
}
.auth-social .nsl-container {
    margin: 0;
}

/* Checkbox */
.olte-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px !important;
    margin-top: 15px;
	
}

.olte-checkbox input[type="checkbox"] {
	position: absolute;
	opacity: 0;
}
.olte-checkbox > span {
	position: relative;
	display: block;
	padding-left: 30px;
}

.olte-checkbox > span:before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	
	width: 18px;
	height: 18px;
	background-color: #fff;
	background-image: url(../graf/icoCheck.svg);
	background-repeat: no-repeat;
	background-size: 14px auto;
	background-position: 50% 50%;
	
	border-radius: 4px;
	border: 1px solid #6592D9;
	transition: all 0.2s ease;
}

.olte-checkbox > input:checked + span:before {
	background-color: #6592D9;
	transition: all 0.2s ease;
}

/* Small tweaks */
[data-view] {
    display: none;
}

/* Password toggle */
.password-wrap {
    position: relative;
}
.password-wrap input {
    padding-right: 42px;
}
.pw-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #000000B2;
}
.pw-toggle::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: center / contain no-repeat
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2330508a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/><circle cx='12' cy='12' r='3'/></svg>");
}
.pw-toggle[aria-pressed="true"]::before {
    content: "";
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2330508a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/><circle cx='12' cy='12' r='3'/><path d='M3 3l18 18'/></svg>");
}

/* Forgot link under fields */
.auth-forgot {
    margin-top: 10px;
    font-size: 16px;
	font-weight: 400;
}
.auth-forgot a {
    color: #202020;
    text-decoration: none;
}
.auth-forgot a:hover {
	color: #478675;
}

/* Switch link centered */
.auth-switch {
    margin-top: 20px;
	margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}
.auth-switch a {
    color: #6E6E6E;
    text-decoration: none;
}
.auth-switch a:hover {
    text-decoration: underline;
}

/* Separator 'lub' */
.auth-or {
	position: relative;
    margin: 20px 0;
    text-align: center;
    color: #30508a;
    font-size: 13px;
}

.auth-or:before {
	content: "";
	display: block;
	width: 100%;
	height: 1px;
	background: #DCDCDC;
	position: absolute;
	z-index: -1;
	left: 0;
	top: 50%;
}

.auth-or span {
	display: inline-block;
	padding: 2px 10px;
	background: #fff;
}

/* Social login block centering */
.auth-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.auth-social .nsl-container {
    display: inline-block;
}

/* Info text above reset input */
.auth-info {
    margin-bottom: 30px;
    font-size: 16px;
}

/* Login primary button style */
.login-primary-btn {
    display: inline-block;
    background: #478675;
    color: #fff;
    border-radius: 50px;
    padding: 12px 50px;
	font-size: 16px;
    box-sizing: border-box;
    outline: 2px solid #478675;
    outline-offset: -2px;
    font-weight: 500;
	cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}
.login-primary-btn:hover {
    background: #2b5d50;
    outline-color: #2b5d50;
}