@font-face {
    font-family: Museo;
    src: url('../fonts/MuseoSans-400.woff2');
    font-weight: 400;
}

@font-face {
    font-family: Museo;
    src: url('../fonts/MuseoSans-600.woff2');
    font-weight: 600;
}

body {
    margin: 0;
    height: 100%;
    min-height: 100vh;
    background-image: url('https://i.cooppank.ee/sso/assets/img/talvine_suur.d00ecd71.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    font-family: Museo;
}

.header {
    padding: 15px 20px;
    margin-top: 0;
    display: flex;
    justify-content: space-between;
}

.header__logo {
    width: 150px;
}

.lang {
    padding: 10px;
    background: #ede6e4;
    border-radius: 33px;
    font-weight: 600;
}

.main {
    background-image: url(https://i.cooppank.ee/sso/assets/img/Intersect-mobile1.05efad43.png);
    height: 420px;
    display: flex;
    margin-top: auto;
    background-size: cover;
    background-repeat: no-repeat;
}

.under_method_block {
    display: flex;
    flex-direction: column;
    padding: 15px 25px;
    align-items: center;
    margin: 0 auto;
}

.method_wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: auto;
    gap: 10px;
}

.method_block {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
    gap: 10px;
    background: #ffffff;
    border-radius: 20px;
    cursor: pointer;
    max-width: 290px;
    width: 100%;
    box-sizing: border-box;
    margin: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.method_block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ico {
    padding: 10px 10px 6px;
    border-radius: 33px;
    background: #ede6e4;
}

.ico > svg {
    width: 20px;
    height: 20px;
}

.title_method {
    font-weight: 600;
    font-size: 14px;
}

.ico_arrow {
    margin-left: auto;
}

.ico_arrow > svg {
}

/* Auth Modal Styles */
.auth_modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.auth_modal.active {
    display: block;
}

.content_modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    overflow-y: auto;
}

.content_modal .header {
    background: #fff;
}

.back {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.back:hover {
    background: #f5f5f5;
}

.back_text {
    font-weight: 600;
    font-size: 16px;
    margin-left: 8px;
}

.main_modal {
    padding: 20px 30px;
    height: auto;
    display: flex;
    flex-direction: column;
    min-height: 450px;
}

.main_modal .title_method {
    font-size: 21px;
    margin-bottom: 20px;
}

.auth_modal_block {
    width: 100%;
    flex: 1;
}

.method_auth_wrap {
    display: none;
}

.method_auth_wrap.active {
    display: block;
}

.form_block {
    position: relative;
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 0 6px;
    font-size: 16px;
    border: none;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    border-bottom: 1px solid #00000045;
    color: #0e0f0c;
    font-family: 'Museo';
}

.input-wrapper .label {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #999;
    pointer-events: none;
    transition: all 0.2s ease;
    background: transparent;
}

/* When placeholder is shown and not focused, keep label inside */
.input-wrapper input:not(:placeholder-shown) ~ .label, .input-wrapper input:focus ~ .label {
    top: 0;
    transform: translateY(-50%);
    font-size: 12px;
    color: #ccc;
}

/* Phone Input Styles */
.phone-input-wrapper {
    display: flex;
    align-items: center;
}

.phone-prefix {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 12px;
    border-right: 1px solid #00000045;
    margin-right: 12px;
    color: #0e0f0c;
    font-size: 16px;
    font-family: 'Museo';
    white-space: nowrap;
}

.flag-icon {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

.phone-input-wrapper input {
    flex: 1;
    padding-left: 0 !important;
    min-width: 0;
}

.phone-error {
    position: absolute;
    bottom: -18px;
    left: 0;
    font-size: 11px;
    color: #dc3545;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.phone-input-wrapper.has-error .phone-error {
    opacity: 1;
}

.phone-input-wrapper.has-error input {
    border-bottom-color: #dc3545 !important;
}

.checkbox_pp {
    display: flex;
    align-items: center;
    margin: 30px 0;
}

.checkbox_pp input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.checkbox_pp label {
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
}

.btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #004bc5;
    border: none;
    border-radius: 33px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'Museo';
}

.btn:hover {
    background: #0056b3;
}

.btn:disabled {
    background: #ccc;
    color: #9a9a9a;
}

.footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
}

.footer_text {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #0e0f0c;
    font-weight: 600;
}

.mr-2 {
    margin-right: 8px;
}

#pho {
    left: 85px;
}