@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-purple: #5c2d91;
    --hover-purple: #4a2176;
    --accent-magenta: #e60054;
    --bg-dark: #070415;
    --text-white: #ffffff;
    --text-dark: #333333;
    --text-muted: #8c8a9e;
    --text-link: #5c2d91;
    --input-bg-grey: #f0f0f2;
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    background-color: #ffffff;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 80px;
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header .logo-container {
    display: flex;
    align-items: center;
}

.header .logo-container svg {
    fill: var(--primary-purple);
    height: 32px;
    width: auto;
}

.header .lang-selector {
    margin-left: auto;
    color: #666;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.header .lang-selector:hover {
    color: var(--primary-purple);
}

.header .lang-selector svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* Main Container Layout */
.main-container {
    flex: 1;
    display: flex;
    min-height: calc(100vh - 72px);
    position: relative;
    background: linear-gradient(to right, rgba(7, 4, 21, 0.95) 0%, rgba(7, 4, 21, 0.7) 40%, rgba(7, 4, 21, 0.2) 100%), url('bg_fans.png') no-repeat center center;
    background-size: cover;
    padding: 60px 80px;
}

/* Promo Banner Section */
.promo-section {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
}

.promo-content {
    max-width: 600px;
}

.promo-title {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.promo-subtitle {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 32px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
}

.promo-price-badge {
    background-color: #e6001a;
    color: white;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border-bottom-left-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
    transform: rotate(-5deg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.promo-price-badge-inner {
    transform: rotate(5deg);
    text-align: center;
}

.price-strike {
    text-decoration: line-through;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: -2px;
}

.price-main {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.price-sub {
    font-size: 11px;
    font-weight: 500;
}

.btn-more-info {
    background-color: #ffffff;
    color: var(--primary-purple);
    font-size: 16px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.btn-more-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.partner-logos {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: auto;
    padding-top: 60px;
}

.partner-logos svg {
    height: 48px;
    width: auto;
    fill: white;
}

/* Login Box Section */
.login-section {
    flex: 0.8;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    position: relative;
    z-index: 5;
}

.login-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    z-index: 5;
}

.login-title {
    color: var(--primary-purple);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
}

.login-subtitle {
    font-size: 14px;
    line-height: 1.5;
    color: #4f4f4f;
    margin-bottom: 24px;
}

.login-subtitle strong {
    font-weight: 700;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

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

.form-group-floating input {
    width: 100%;
    height: 52px;
    padding: 22px 16px 6px 16px;
    border: 1.5px solid transparent;
    border-radius: 4px;
    font-size: 15px;
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: var(--input-bg-grey);
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-group-floating input:focus {
    background-color: #ffffff;
    border-color: var(--primary-purple);
}

.form-group-floating label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: var(--text-muted);
    transition: all 0.2s ease;
    pointer-events: none;
    font-weight: 400;
}

.form-group-floating input:focus ~ label,
.form-group-floating input:not(:placeholder-shown) ~ label {
    top: 14px;
    font-size: 11px;
    color: var(--primary-purple);
    font-weight: 500;
}

.input-grey {
    width: 100%;
    height: 52px;
    padding: 14px 40px 14px 16px;
    border: 1.5px solid transparent;
    border-radius: 4px;
    font-size: 15px;
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: var(--input-bg-grey);
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.input-grey:focus {
    background-color: #ffffff;
    border-color: var(--primary-purple);
}

.password-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    fill: #666;
    width: 20px;
    height: 20px;
    transition: fill 0.2s ease;
}

.password-icon:hover {
    fill: var(--primary-purple);
}

/* Hide native Edge/IE password reveal icon */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    margin-bottom: 30px;
}

.link-forgot {
    color: var(--text-dark);
    font-size: 14px;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.link-forgot:hover {
    color: var(--primary-purple);
}

.btn-submit {
    background-color: var(--primary-purple);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 4px 4px 28px 4px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(92, 45, 145, 0.35);
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
    background-color: var(--hover-purple);
    box-shadow: 0 10px 24px rgba(92, 45, 145, 0.45);
}

.btn-submit:active {
    transform: scale(0.98);
}

/* Secondary Info and Links */
.info-section {
    border-top: 1px solid #eaeaea;
    padding-top: 24px;
    font-size: 14px;
    line-height: 1.5;
    color: #4f4f4f;
}

.info-section p {
    margin-bottom: 18px;
}

.info-link {
    color: var(--text-link);
    text-decoration: underline;
    font-weight: 400;
    display: inline-block;
}

.info-link:hover {
    color: var(--hover-purple);
}

/* Store Badge Row */
.store-badges {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.store-badge {
    height: 40px;
    width: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.store-badge:hover {
    opacity: 0.85;
}

/* Responsive Styles */
@media (max-width: 1100px) {
    .main-container {
        flex-direction: column;
        padding: 40px 20px;
    }
    
    .promo-section {
        order: 2;
        margin-top: 40px;
    }
    
    .login-section {
        order: 1;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 0 20px;
    }
    
    .promo-title {
        font-size: 32px;
    }
    
    .promo-subtitle {
        font-size: 18px;
    }
    
    .login-card {
        padding: 32px 24px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        text-align: center;
    }
    
    .btn-submit {
        order: 1;
        width: 100%;
    }
    
    .link-forgot {
        order: 2;
    }
}

.error-message {
    color: #e6001a;
    font-size: 13.5px;
    margin-top: -10px;
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.4;
}

.btn-submit.is-loading {
    background-color: var(--hover-purple);
    color: transparent !important;
    position: relative;
    pointer-events: none;
}

.btn-submit.is-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: button-loading-spinner 0.8s linear infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
