/* ========================================
   CSS VARIABLES
   ======================================== */

:root {
    /* Colors */
    --color-primary: #FF9500;
    --color-primary-hover: #088FA9;
    --color-text-primary: #2A3A46;
    --color-text-secondary: #858585;
    --color-background: #F6F9FE;
    --color-border: #E7EDF8;
    --color-white: #FFFFFF;
    --color-shadow: rgba(8, 143, 169, 0.3);
    
    /* Sizes */
    --input-height: 60px;
    --input-padding: 0 5px 0 20px;
    --input-border-radius: 30px;
    --button-size: 50px;
    --button-border-radius: 25px;
    --icon-size: 30px;
    --icon-margin: 15px;
    
    /* Typography */
    --font-family: 'Geologica', sans-serif;
    --font-size-input: 18px;
    --font-size-button: 18px;
    --font-weight-light: 300;
    --font-weight-medium: 500;
    --letter-spacing: 0.2%;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.15s ease;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Geologica', sans-serif;
    line-height: 1;
    color: #2A3A46;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Enable scrolling on mobile */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
    }
}

/* Prevent zoom on input focus for iOS */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    input[type="tel"] {
        font-size: 16px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   COMPATIBILITY
   ======================================== */

[v-cloak]{
    display: none !important;
}

.d-none {
    display: none !important;
}

/* ========================================
   UNIFIED INPUT SYSTEM
   ======================================== */

/* Base input field - used for all inputs */
.unified-input__field {
    position: relative;
    width: 100%;
    height: var(--input-height);
    display: flex;
    align-items: center;
    padding: var(--input-padding);
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--input-border-radius);
}

.unified-input__icon {
    width: var(--icon-size);
    height: var(--icon-size);
    margin-right: var(--icon-margin);
    flex-shrink: 0;
}

.unified-input__icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
}

.unified-input__input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-family);
    font-weight: var(--font-weight-light);
    font-size: var(--font-size-input);
    line-height: 1em;
    letter-spacing: var(--letter-spacing);
    color: var(--color-text-secondary);
}

.unified-input__input::placeholder {
    color: var(--color-text-secondary);
}

.unified-input__input:focus::placeholder {
    opacity: 0;
}

.unified-input__field:focus-within {
    border-color: var(--color-primary-hover);
    outline: none;
}

.unified-input__field:focus-within .unified-input__input {
    color: var(--color-text-primary);
}

.unified-input__field.input--error {
    border-color: #FF6B6B;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

.unified-input__field.input--error .unified-input__input {
    color: #FF6B6B;
}

.unified-input__field.input--error .unified-input__input::placeholder {
    color: #FF6B6B;
    opacity: 0.7;
}

.unified-input__button {
    width: var(--button-size);
    height: var(--button-size);
    background: var(--color-primary);
    border: none;
    border-radius: var(--button-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.unified-input__button img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.unified-input__button:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 0 10px var(--color-shadow);
}

/* Button States */
.unified-input__button.button--loading {
    background: var(--color-primary-hover);
}

.unified-input__button.button--success {
    background: var(--color-primary);
}

/* ========================================
   LOGIN FORM HEADER
   ======================================== */

.login-form__header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-form__header .back-button {
    flex-shrink: 0;
}

.login-form__header .login-form__logo {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* ========================================
   LAYOUT STRUCTURE
   ======================================== */

/* Main Container Layout - REMOVED: Use login-main classes instead */

/* Form Layout - REMOVED: Use login-form classes instead */

/* Input Layout - REMOVED: Use base-input classes instead */

/* Divider Layout - REMOVED: Use login-form__divider classes instead */

/* Button Layout - REMOVED: Use base-button classes instead */

/* ========================================
   VISUAL STYLES
   ======================================== */

/* Background Appearance - REMOVED: Use login-main__background instead */

/* Form Appearance - REMOVED: Use login-form classes instead */

/* Typography - REMOVED: Use login-form__title instead */

/* Input Field Appearance - REMOVED: Use base-input classes instead */

/* Button Appearance - REMOVED: Use base-button classes instead */

/* Divider Appearance - REMOVED: Use login-form__divider-line instead */

/* Text Divider - REMOVED: Use login-form__divider-text instead */

/* ========================================
   BASE COMPONENT STYLES
   ======================================== */

/* Base Input Component */
.base-input {
    width: 100%;
}

.base-input__field {
    position: relative;
    width: 100%;
    height: var(--input-height);
    display: flex;
    align-items: center;
    padding: var(--input-padding);
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--input-border-radius);
}

.base-input__icon {
    width: var(--icon-size);
    height: var(--icon-size);
    margin-right: var(--icon-margin);
    flex-shrink: 0;
}

.base-input__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.base-input__input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-family);
    font-weight: var(--font-weight-light);
    font-size: var(--font-size-input);
    line-height: 1em;
    letter-spacing: var(--letter-spacing);
    color: var(--color-text-secondary);
}

.base-input__input::placeholder {
    color: var(--color-text-secondary);
}

.base-input__input:focus::placeholder {
    opacity: 0;
}

.base-input__field:focus-within {
    border-color: var(--color-primary-hover);
    outline: none;
}

.base-input__field:focus-within .base-input__input {
    color: var(--color-text-primary);
}

/* Base Button Component */
.base-button {
    width: var(--button-size);
    height: var(--button-size);
    background: var(--color-primary);
    border: none;
    border-radius: var(--button-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.base-button img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.base-button:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 0 10px var(--color-shadow);
}

/* Base Primary Button Component */
.base-primary-button {
    width: 100%;
    height: var(--input-height);
    background: var(--color-primary);
    border: none;
    border-radius: var(--input-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-slow);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.base-primary-button:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 0 10px var(--color-shadow);
}

.base-primary-button__text {
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-button);
    line-height: 1em;
    letter-spacing: var(--letter-spacing);
    color: var(--color-white);
}

/* ========================================
   COMPONENT COMBINATIONS
   ======================================== */

/* Phone Input Component - extends base-input */


/* Login Form Component */
.login-form {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0px 0px 30px 0px rgba(133, 133, 133, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: auto;
    min-width: 420px;
}

.login-form__logo {
    width: 232px;
    height: 40px;
}

.login-form__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-form__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.login-form__title {
    font-weight: 400;
    font-size: 20px;
    line-height: 1em;
    letter-spacing: 0.2%;
    text-align: center;
    color: #2A3A46;
}

/* Divider Component */
.login-form__divider {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.login-form__divider-line {
    flex: 1;
    height: 1px;
    background: #EEEEEE;
}

.login-form__divider-text {
    font-weight: 300;
    font-size: 16px;
    line-height: 1em;
    letter-spacing: 0.2%;
    color: #858585;
    white-space: nowrap;
}

/* Unified Primary Button Component */
.primary-button {
    width: 100%;
    height: var(--input-height);
    background: var(--color-primary);
    border: none;
    border-radius: var(--input-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-slow);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.primary-button:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 0 10px var(--color-shadow);
}

.primary-button__text {
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-button);
    line-height: 1em;
    letter-spacing: var(--letter-spacing);
    color: var(--color-white);
}

.login_auth-agreement {
    text-align: center;
}

/* Legacy classes for backward compatibility */
.signup-button {
    width: 100%;
    height: var(--input-height);
    background: var(--color-primary);
    border: none;
    border-radius: var(--input-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-slow);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.signup-button:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 0 10px var(--color-shadow);
}

.signup-button__text {
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-button);
    line-height: 1em;
    letter-spacing: var(--letter-spacing);
    color: var(--color-white);
}

/* Main Container Component */
.login-main {
    position: relative;
    width: 100vw;
    height: auto;
    min-height: 100vh;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding-bottom: 120px;
}

.login-main__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 0% 0%, #F3CB95 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, #75C9DB 0%, transparent 50%),
                #F6F9FE;
    z-index: -1;
    transition: background 0.3s ease;
}

/* ========================================
   LOADER COMPONENT
   ======================================== */

.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 40px 0;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid var(--color-border);
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

/* ========================================
   ADDITIONAL COMPONENTS
   ======================================== */

/* Generic Input Component - for inputs without icons (password, auth code, etc.) */
.generic-input {
    width: 100%;
}

.generic-input__field {
    position: relative;
    width: 100%;
    height: var(--input-height);
    display: flex;
    align-items: center;
    padding: var(--input-padding);
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--input-border-radius);
}

.generic-input__input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-family);
    font-weight: var(--font-weight-light);
    font-size: var(--font-size-input);
    line-height: 1em;
    letter-spacing: var(--letter-spacing);
    color: var(--color-text-secondary);
}

.generic-input__input::placeholder {
    color: var(--color-text-secondary);
}

.generic-input__input:focus::placeholder {
    opacity: 0;
}

.generic-input__field:focus-within {
    border-color: var(--color-primary-hover);
    outline: none;
}

.generic-input__field:focus-within .generic-input__input {
    color: var(--color-text-primary);
}

.generic-input__button {
    width: var(--button-size);
    height: var(--button-size);
    background: var(--color-primary);
    border: none;
    border-radius: var(--button-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.generic-input__button img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.generic-input__button:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 0 10px var(--color-shadow);
}

/* Legacy classes for backward compatibility - now use generic-input */
.password-input {
    width: 100%;
}

.password-input__field {
    position: relative;
    width: 100%;
    height: var(--input-height);
    display: flex;
    align-items: center;
    padding: var(--input-padding);
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--input-border-radius);
}

.password-input__input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-family);
    font-weight: var(--font-weight-light);
    font-size: var(--font-size-input);
    line-height: 1em;
    letter-spacing: var(--letter-spacing);
    color: var(--color-text-secondary);
}

.password-input__input::placeholder {
    color: var(--color-text-secondary);
}

.password-input__input:focus::placeholder {
    opacity: 0;
}

.password-input__field:focus-within {
    border-color: var(--color-primary-hover);
    outline: none;
}

.password-input__field:focus-within .password-input__input {
    color: var(--color-text-primary);
}

.password-input__button {
    width: var(--button-size);
    height: var(--button-size);
    background: var(--color-primary);
    border: none;
    border-radius: var(--button-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.password-input__button img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.password-input__button:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 0 10px var(--color-shadow);
}

/* Auth Input Component - now uses same styles as password-input */
.auth-input {
    width: 100%;
}

.auth-input__field {
    position: relative;
    width: 100%;
    height: var(--input-height);
    display: flex;
    align-items: center;
    padding: var(--input-padding);
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--input-border-radius);
}

.auth-input__input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-family);
    font-weight: var(--font-weight-light);
    font-size: var(--font-size-input);
    line-height: 1em;
    letter-spacing: var(--letter-spacing);
    color: var(--color-text-secondary);
}

.auth-input__input::placeholder {
    color: var(--color-text-secondary);
}

.auth-input__input:focus::placeholder {
    opacity: 0;
}

.auth-input__field:focus-within {
    border-color: var(--color-primary-hover);
    outline: none;
}

.auth-input__field:focus-within .auth-input__input {
    color: var(--color-text-primary);
}

.auth-input__button {
    width: var(--button-size);
    height: var(--button-size);
    background: var(--color-primary);
    border: none;
    border-radius: var(--button-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.auth-input__button img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.auth-input__button:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 0 10px var(--color-shadow);
}

/* Auth Description */
.auth-description {
    font-weight: 300;
    font-size: 16px;
    line-height: 1.2em;
    letter-spacing: 0.2%;
    text-align: center;
    color: #858585;
    max-width: 420px;
    margin: 0 auto;
}

/* Unified Link Component */
.action-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    background: #F2F2F2;
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.action-link:hover {
    background: #F6F9FE;
}

.action-link:hover .action-link__text {
    color: #088FA9;
}

.action-link__text {
    font-weight: 300;
    font-size: 16px;
    line-height: 1em;
    letter-spacing: 0.2%;
    color: #858585;
    transition: color 0.3s ease;
}

/* Legacy classes for backward compatibility */
.button-link-secondary,
.forgot-password-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    background: #F2F2F2;
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.button-link-secondary:hover,
.forgot-password-link:hover {
    background: #F6F9FE;
}

.button-link-secondary:hover .button-link-secondary__text,
.forgot-password-link:hover .forgot-password-link__text {
    color: #088FA9;
}

.button-link-secondary__text,
.forgot-password-link__text {
    font-weight: 300;
    font-size: 16px;
    line-height: 1em;
    letter-spacing: 0.2%;
    color: #858585;
    transition: color 0.3s ease;
}

.resend-code-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    background: #F2F2F2;
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.resend-code-link:hover:not(:disabled) {
    background: #F6F9FE;
}

.resend-code-link:hover:not(:disabled) .resend-code-link__text {
    color: #088FA9;
}

.resend-code-link:disabled {
    touch-action: none;
    pointer-events: none;
}

.resend-code-link__text {
    font-weight: 300;
    font-size: 16px;
    line-height: 1em;
    letter-spacing: 0.2%;
    color: #858585;
    transition: color 0.3s ease;
}

/* Sign Up Message */
.signup-message {
    position: absolute;
    top: calc(50% + 320px);
    left: 50%;
    transform: translateX(-50%);
    background: #FFFFFF;
    border-radius: 15px;
    padding: 30px 40px;
    box-shadow: 0px 0px 30px 0px rgba(133, 133, 133, 0.15);
    display: none;
    align-items: center;
    justify-content: center;
    max-width: 500px;
    width: calc(100% - 40px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.signup-message.show {
    opacity: 1;
}

.signup-message__text {
    font-weight: 300;
    font-size: 16px;
    line-height: 1.2em;
    letter-spacing: 0.2%;
    text-align: center;
    color: #858585;
    max-width: 400px;
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFFFFF;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0px 0px 30px 0px rgba(133, 133, 133, 0.15);
    display: flex;
    align-items: center;
    gap: 30px;
    width: auto;
    min-width: 300px;
    max-width: calc(100% - 40px);
    margin: 0;
    z-index: 2000;
}

.cookie-notice__content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.cookie-notice__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.cookie-notice__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cookie-notice__text {
    font-weight: 300;
    font-size: 16px;
    line-height: 1.2em;
    letter-spacing: 0.2%;
    color: #858585;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Unified Close Button Component */
.close-button {
    width: 20px;
    height: 20px;
    background: #E7EDF8;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.close-button:hover {
    background: #FF9500;
}

.close-button:hover svg path {
    stroke: white;
}

/* Legacy classes for backward compatibility */
.cookie-notice__close {
    width: 20px;
    height: 20px;
    background: #E7EDF8;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookie-notice__close:hover {
    background: #FF9500;
}

.cookie-notice__close:hover svg path {
    stroke: white;
}

/* Footer */
.footer {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 0 20px;
    box-sizing: border-box;
}

.footer__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer__link {
    font-weight: 300;
    font-size: 16px;
    line-height: 1em;
    letter-spacing: 0.2%;
    background-color: white;
    color: #858585;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.footer__link:hover {
    background: #F6F9FE;
    color: #088FA9;
}

.footer__copyright {
    font-weight: 300;
    font-size: 14px;
    line-height: 1.2em;
    letter-spacing: 0.2%;
    color: rgba(42, 58, 70, 0.7);
    text-align: center;
}

/* Language Selector */
.language-selector {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 20px;
    background: #FFFFFF;
    border-radius: 25px;
    box-shadow: 0px 0px 30px 0px rgba(133, 133, 133, 0.15);
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    min-width: 120px;
}

.language-selector:focus,
.language-selector:focus-within,
.language-selector:hover {
    box-shadow: 0px 0px 40px 0px rgba(133, 133, 133, 0.2);
}

.language-selector__content {
    display: flex;
    align-items: center;
    gap: 5px;
}

.language-selector__flag {
    width: 26px;
    height: 26px;
    background: #F6F9FE;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.language-selector__content[data-lang="am"] .language-selector__flag {
    background-image: url('/img/v2/login/menu-flags/am.svg');
}

.language-selector__content[data-lang="en"] .language-selector__flag {
    background-image: url('/img/v2/login/menu-flags/en.svg');
}

.language-selector__content[data-lang="ru"] .language-selector__flag {
    background-image: url('/img/v2/login/menu-flags/ru.svg');
}

.language-selector__text {
    font-weight: 300;
    font-size: 16px;
    line-height: 1em;
    letter-spacing: 0.2%;
    color: #858585;
}

.language-selector__arrow {
    transition: transform 0.3s ease;
}

.language-selector:focus .language-selector__arrow,
.language-selector:focus-within .language-selector__arrow,
.language-selector:hover .language-selector__arrow {
    transform: rotate(180deg);
}

/* Language Dropdown */
.language-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-radius: 15px;
    box-shadow: 0px 0px 30px 0px rgba(133, 133, 133, 0.15);
    padding: 10px 0;
    margin-bottom: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 140px;
}

.language-selector:focus .language-dropdown,
.language-selector:focus-within .language-dropdown,
.language-selector:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.language-option:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background-color: #EDECEC;
}

.language-option:hover {
    background: transparent;
}

.language-option:hover .language-option__text {
    color: #2A3A46;
}

.language-option:hover .language-option__flag {
    transform: scale(1.1);
}

.language-option__flag {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.language-option[data-lang="en"] .language-option__flag {
    background-image: url('/img/v2/login/menu-flags/en.svg');
}

.language-option[data-lang="ru"] .language-option__flag {
    background-image: url('/img/v2/login/menu-flags/ru.svg');
}

.language-option[data-lang="am"] .language-option__flag {
    background-image: url('/img/v2/login/menu-flags/am.svg');
}

.language-option__text {
    font-weight: 300;
    font-size: 16px;
    line-height: 1em;
    letter-spacing: 0.2%;
    color: #858585;
}

/* Mobile Language Popup */
.language-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.language-popup {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 30px 20px;
    width: calc(100% - 40px);
    max-width: 320px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0px 20px 60px 0px rgba(0, 0, 0, 0.3);
    z-index: 5001;
}

.language-popup.show {
    transform: scale(1);
}

.language-popup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #EDECEC;
}

.language-popup__title {
    font-weight: 500;
    font-size: 18px;
    color: #2A3A46;
}

.language-popup__close {
    width: 30px;
    height: 30px;
    background: #F6F9FE;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.language-popup__close:hover {
    background: #E7EDF8;
}

.language-popup__close svg {
    width: 16px;
    height: 16px;
}

.language-popup__close svg path {
    stroke: #858585;
    stroke-width: 2;
}

.language-popup__options {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.language-popup .language-option {
    padding: 15px 0;
    border-bottom: 1px solid #EDECEC;
    margin: 0;
}

.language-popup .language-option:last-child {
    border-bottom: none;
}

.language-popup .language-option:hover {
    background: #F6F9FE;
}

.language-popup .language-option__text {
    font-size: 16px;
    font-weight: 400;
}

.language-popup .language-option__flag {
    width: 28px;
    height: 28px;
}


/* Notifications */
.float-notification {
    position: absolute;
    padding: 8px 12px;
    border-radius: 25px;
    color: white;
    font-family: 'Geologica', sans-serif;
    font-size: 12px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    margin-top: 5px;
    word-wrap: break-word;
    max-width: 100%;
}

.float-notification--error {
    background: #FF6B6B;
}

.float-notification--success {
    background: #4CAF50;
}

.float-notification--info {
    background: #FF9500;
}

.float-notification.float-notification--show {
    opacity: 1;
}

.float-notification.float-notification--hide {
    opacity: 0;
}

/* Notification positioning */
.float-notification.field-notification {
    top: 100%;
    left: 0;
    right: 0;
    transform: translateY(-10px);
}

.float-notification.field-notification.float-notification--show {
    transform: translateY(0);
}

.float-notification.field-notification.float-notification--hide {
    transform: translateY(-10px);
}

.float-notification.global-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    transform: translateX(100%);
}

.float-notification.global-notification.float-notification--show {
    transform: translateX(0);
}

.float-notification.global-notification.float-notification--hide {
    transform: translateX(100%);
}

/* Confirm Page Components */
.confirm-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 54px;
    padding-right: 94px;
}

.back-button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 15;
}

.back-button:hover {
    background: #F6F9FE;
}

.back-button__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.confirm-options {
    display: flex;
    align-items: center;
    gap: 20px;
}

.confirm-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 20px;
    width: 200px;
    background: #FFFFFF;
    border: 1px solid #E7EDF8;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-option--selected {
    border-color: #E7EDF8;
    background: #F6F9FE;
}

.confirm-option:hover {
    border-color: #E7EDF8;
    background: #F6F9FE;
}

.confirm-option__radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #E6E6E6;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.confirm-option--selected .confirm-option__radio {
    background: #088FA9;
}

.confirm-option__radio-inner {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FFFFFF;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.confirm-option--selected .confirm-option__radio-inner {
    opacity: 1;
}

.confirm-option__text {
    font-family: 'Geologica', sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.2;
    color: #2A3A46;
    text-align: left;
    flex: 1;
}

.confirm-note {
    font-family: 'Geologica', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.2;
    color: #858585;
    text-align: center;
    width: 420px;
    margin: 0;
}

/* Confirm Button Component - extends base-primary-button */
.confirm-button {
    width: 420px;
    height: var(--input-height);
    border: none;
    border-radius: var(--input-border-radius);
    background: var(--color-primary);
    color: var(--color-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    padding: 21px 93px;
}

.confirm-button:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 0 10px var(--color-shadow);
}

.confirm-button__text {
    font-family: var(--font-family);
    font-size: var(--font-size-button);
    font-weight: var(--font-weight-medium);
    line-height: 1;
    color: var(--color-white);
}

/* reCAPTCHA Page Components */
.recaptcha-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 54px;
    padding-right: 94px;
}

.recaptcha-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.recaptcha-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 80px;
}

/* reCAPTCHA Button Component - extends primary-button */
.primary-button:disabled {
    background: var(--color-border);
    cursor: not-allowed;
}

.primary-button:disabled .primary-button__text {
    color: var(--color-text-secondary);
}

/* Legacy classes for backward compatibility */
.recaptcha-button {
    width: 100%;
    height: var(--input-height);
    background: var(--color-border);
    border: none;
    border-radius: var(--input-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: not-allowed;
    transition: background-color var(--transition-fast), transform var(--transition-slow);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.recaptcha-button:enabled {
    background: var(--color-primary);
    cursor: pointer;
}

.recaptcha-button:enabled:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 0 10px var(--color-shadow);
}

.recaptcha-button__text {
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-button);
    line-height: 1em;
    letter-spacing: var(--letter-spacing);
    color: var(--color-text-secondary);
}

.recaptcha-button:enabled .recaptcha-button__text {
    color: var(--color-white);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Mobile-specific language selector improvements */
@media (max-width: 768px) {
    /* Enable scrolling for mobile */
    .login-main {
        overflow: auto;
        height: auto;
        min-height: 100vh;
        padding: 110px 0 80px 0; /* Extra top padding to clear fixed cookie notice */
        gap: 20px;
    }
    
    .login-form {
        margin: 0 15px;
        padding: 30px 25px;
        gap: 30px;
        position: relative;
        z-index: 10; /* Ensure form is above background */
    }
    
    /* Cookie Notice Mobile */
    .cookie-notice {
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2000;
        margin: 0;
        padding: 15px 20px;
        width: auto;
        min-width: 280px;
        max-width: calc(100% - 40px);
    }
    
    .cookie-notice__text {
        font-size: 14px;
    }
    
    /* Footer Mobile */
    .footer {
        position: static;
        margin-top: 40px;
        padding: 0 20px;
    }
    
    /* Language Selector Mobile */
    .language-selector {
        justify-content: center;
        min-width: 100px;
        padding: 10px 15px;
    }
    
    .language-selector__text {
        font-size: 14px;
    }
    
    .language-selector__flag {
        width: 22px;
        height: 22px;
    }

    /* Confirm Page Mobile */
    .confirm-header {
        gap: 20px;
        padding-right: 0;
    }
    
    .confirm-options {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .confirm-option {
        width: 100%;
        padding: 15px;
    }
    
    .confirm-note {
        width: 100%;
        font-size: 14px;
    }
    
    .confirm-button {
        width: 100%;
        padding: 15px 20px;
    }
    
    /* reCAPTCHA Page Mobile */
    .recaptcha-header {
        gap: 20px;
        padding-right: 0;
    }
    
    .recaptcha-button {
        height: 55px;
    }
    
    .recaptcha-button__text {
        font-size: 16px;
    }
}

/* Tablet and small desktop */
@media (max-width: 1024px) {
    .login-form {
        padding: 35px 30px;
    }
}

/* Tablet portrait */
@media (max-width: 768px) {
    .login-form {
        margin: 0 15px;
        padding: 30px 25px;
        gap: 30px;
        width: auto;
        min-width: 300px;
    }
    
    .login-form__logo {
        width: 200px;
        height: 35px;
    }
    
    .login-form__title {
        font-size: 18px;
    }
}

/* Mobile landscape */
@media (max-width: 600px) {
    .login-form {
        margin: 0 10px;
        padding: 25px 20px;
        gap: 25px;
        width: auto;
        min-width: 280px;
    }
    
    .login-form__logo {
        width: 180px;
        height: 31px;
    }
    
    .login-form__title {
        font-size: 16px;
    }
    
    .unified-input__field {
        height: 55px;
    }
    
    .unified-input__input {
        font-size: 15px;
    }
    
    .unified-input__button {
        width: 45px;
        height: 45px;
    }
    
    .signup-button {
        height: 55px;
    }
    
    .signup-button__text {
        font-size: 16px;
    }
    
    /* Password Input Mobile */
    .password-input__field {
        height: 55px;
    }
    
    .password-input__input {
        font-size: 15px;
    }
    
    .password-input__button {
        width: 45px;
        height: 45px;
    }
    
    /* Auth Input Mobile */
    .auth-input__field {
        height: 55px;
    }
    
    .auth-input__input {
        font-size: 15px;
    }
    
    .auth-input__button {
        width: 45px;
        height: 45px;
    }
    
    .auth-description {
        font-size: 14px;
    }
    
    /* Links Mobile */
    .button-link-secondary__text,
    .forgot-password-link__text,
    .resend-code-link__text {
        font-size: 14px;
    }
    
    /* Footer Links Mobile */
    .footer__links {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        overflow-x: visible;
        white-space: normal;
    }
    
    .footer__link {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    /* Enable scrolling for small mobile */
    .login-main {
        overflow: auto;
        height: auto;
        min-height: 100vh;
        padding: 100px 0 70px 0; /* Extra top padding to clear fixed cookie notice */
        gap: 15px;
    }
    
    .login-form {
        padding: 20px 15px;
        gap: 20px;
        margin: 0 8px;
        position: relative;
        z-index: 10;
        width: auto;
        min-width: 260px;
    }
    
    /* Phone Input Mobile - remove min-width constraint */
    .phone-input {
        min-width: auto;
    }
    
    .login-form__logo {
        width: 160px;
        height: 28px;
    }
    
    .login-form__title {
        font-size: 15px;
    }
    
    .unified-input__field {
        height: 50px;
        padding: 0 3px 0 12px;
    }
    
    .unified-input__icon {
        width: 25px;
        height: 25px;
        margin-right: 12px;
    }
    
    .unified-input__input {
        font-size: 14px;
    }
    
    .unified-input__button {
        width: 40px;
        height: 40px;
    }
    
    .unified-input__button img {
        width: 18px;
        height: 18px;
    }
    
    .signup-button {
        height: 50px;
    }
    
    .signup-button__text {
        font-size: 15px;
    }
    
    /* Password Input Small Mobile */
    .password-input__field {
        height: 50px;
        padding: 0 3px 0 12px;
    }
    
    .password-input__input {
        font-size: 14px;
    }
    
    .password-input__button {
        width: 40px;
        height: 40px;
    }
    
    .password-input__button img {
        width: 18px;
        height: 18px;
    }
    
    /* Auth Input Small Mobile */
    .auth-input__field {
        height: 50px;
        padding: 0 3px 0 12px;
    }
    
    .auth-input__input {
        font-size: 14px;
    }
    
    .auth-input__button {
        width: 40px;
        height: 40px;
    }
    
    .auth-input__button img {
        width: 18px;
        height: 18px;
    }
    
    .auth-description {
        font-size: 13px;
    }
    
    /* Links Small Mobile */
    .button-link-secondary,
    .forgot-password-link,
    .resend-code-link {
        padding: 8px 15px;
    }
    
    .button-link-secondary__text,
    .forgot-password-link__text,
    .resend-code-link__text {
        font-size: 13px;
    }
    
    /* Cookie Notice Small Mobile */
    .cookie-notice {
        padding: 12px 15px;
        min-width: 260px;
    }
    
    .cookie-notice__text {
        font-size: 13px;
    }
    
    /* Footer Small Mobile */
    .footer {
        margin-top: 30px;
        padding: 0 15px;
    }
    
    .footer__link {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .footer__copyright {
        font-size: 12px;
    }
    
    /* Language Selector Small Mobile */
    .language-selector {
        min-width: 90px;
        padding: 8px 12px;
    }
    
    .language-selector__text {
        font-size: 13px;
    }
    
    .language-selector__flag {
        width: 20px;
        height: 20px;
    }
    
    /* Confirm Page Small Mobile */
    .confirm-option {
        padding: 12px;
    }
    
    .confirm-option__text {
        font-size: 16px;
    }
    
    .confirm-note {
        font-size: 13px;
    }
    
    .confirm-button {
        height: 50px;
    }
    
    .confirm-button__text {
        font-size: 16px;
    }
    
    /* reCAPTCHA Page Small Mobile */
    .recaptcha-button {
        height: 50px;
    }
    
    .recaptcha-button__text {
        font-size: 15px;
    }

    /* Loader Small Mobile */
    .loader {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }
}

/* Small mobile */
@media (max-width: 360px) {
    /* Enable scrolling for very small mobile */
    .login-main {
        overflow: auto;
        height: auto;
        min-height: 100vh;
        padding: 90px 0 60px 0; /* Extra top padding to clear fixed cookie notice */
        gap: 10px;
    }
    
    .login-form {
        padding: 15px 10px;
        gap: 15px;
        margin: 0 5px;
        position: relative;
        z-index: 10;
        width: auto;
        min-width: 240px;
    }
    
    /* Phone Input Very Small Mobile - remove min-width constraint */
    .phone-input {
        min-width: auto;
    }
    
    .login-form__logo {
        width: 140px;
        height: 24px;
    }
    
    .login-form__title {
        font-size: 14px;
    }
    
    .unified-input__field {
        height: 45px;
        padding: 0 2px 0 10px;
    }
    
    .unified-input__icon {
        width: 22px;
        height: 22px;
        margin-right: 10px;
    }
    
    .unified-input__input {
        font-size: 13px;
    }
    
    .unified-input__button {
        width: 35px;
        height: 35px;
    }
    
    .unified-input__button img {
        width: 16px;
        height: 16px;
    }
    
    .signup-button {
        height: 45px;
    }
    
    .signup-button__text {
        font-size: 14px;
    }
    
    /* Password Input Very Small Mobile */
    .password-input__field {
        height: 45px;
        padding: 0 2px 0 10px;
    }
    
    .password-input__input {
        font-size: 13px;
    }
    
    .password-input__button {
        width: 35px;
        height: 35px;
    }
    
    .password-input__button img {
        width: 16px;
        height: 16px;
    }
    
    /* Auth Input Very Small Mobile */
    .auth-input__field {
        height: 45px;
        padding: 0 2px 0 10px;
    }
    
    .auth-input__input {
        font-size: 13px;
    }
    
    .auth-input__button {
        width: 35px;
        height: 35px;
    }
    
    .auth-input__button img {
        width: 16px;
        height: 16px;
    }
    
    .auth-description {
        font-size: 12px;
    }
    
    /* Links Very Small Mobile */
    .button-link-secondary,
    .forgot-password-link,
    .resend-code-link {
        padding: 6px 12px;
    }
    
    .button-link-secondary__text,
    .forgot-password-link__text,
    .resend-code-link__text {
        font-size: 12px;
    }
    
    /* Cookie Notice Very Small Mobile */
    .cookie-notice {
        padding: 10px 12px;
        min-width: 240px;
    }
    
    .cookie-notice__text {
        font-size: 12px;
    }
    
    /* Footer Very Small Mobile */
    .footer {
        margin-top: 25px;
        padding: 0 10px;
    }
    
    .footer__link {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .footer__copyright {
        font-size: 11px;
    }
    
    /* Language Selector Very Small Mobile */
    .language-selector {
        min-width: 80px;
        padding: 6px 10px;
    }
    
    .language-selector__text {
        font-size: 12px;
    }
    
    .language-selector__flag {
        width: 18px;
        height: 18px;
    }
    
    /* Confirm Page Very Small Mobile */
    .confirm-option {
        padding: 10px;
    }
    
    .confirm-option__text {
        font-size: 15px;
    }
    
    .confirm-note {
        font-size: 12px;
    }
    
    .confirm-button {
        height: 45px;
    }
    
    .confirm-button__text {
        font-size: 15px;
    }
    
    /* reCAPTCHA Page Very Small Mobile */
    .recaptcha-button {
        height: 45px;
    }
    
    .recaptcha-button__text {
        font-size: 14px;
    }

    /* Loader Very Small Mobile */
    .loader {
        width: 45px;
        height: 45px;
        border-width: 2.5px;
    }

}

/* Height-based media queries for very tall screens */
@media (min-height: 800px) {
    .signup-message {
        top: calc(50% + 240px);
    }
}

@media (max-height: 600px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .login-main {
        overflow: auto;
        height: auto;
        min-height: 100vh;
        padding-top: 110px; /* clear cookie notice */
        padding-bottom: 120px; /* clear footer */
    }
    
    .login-form {
        gap: 20px;
        padding: 20px 25px;
        width: auto;
        min-width: 300px;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    /* Enable scrolling for landscape mobile */
    .login-main {
        overflow: auto;
        height: auto;
        min-height: 100vh;
        padding: 110px 0 80px 0; /* Extra top padding to clear fixed cookie notice */
        gap: 15px;
    }
    
    .login-form {
        gap: 20px;
        padding: 20px 25px;
        position: relative;
        z-index: 10;
        width: auto;
        min-width: 300px;
    }
}

.button--disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* Loading Spinner */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #FFFFFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
