@font-face {
    font-family: 'URW Classico';
    src: url('../fonts/fonnts.com-Classico_URW_Regular_Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'URW Classico';
    src: url('../fonts/fonnts.com-Classico_URW.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'URW Classico';
    src: url('../fonts/fonnts.com-Classico_URW_Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'URW Classico';
    src: url('../fonts/fonnts.com-Classico_URW_Medium_Italic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'URW Classico';
    src: url('../fonts/fonnts.com-Classico_URW_Bold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'URW Classico';
    src: url('../fonts/fonnts.com-Classico_URW_Bold_Italic.otf') format('opentype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'URW Classico';
    src: url('../fonts/fonnts.com-Classico_URW_Black.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #F9F3EA;
    --bg-light: #F9F3E7;
    --bronze-primary: #B89367;
    --bronze-dark: #9A7B4F;
    --bronze-light: #D4B896;
    --dark-luxury: #594225;
    --dark-luxury-light: #6B5235;
    --white: #FFFFFF;
    --text-dark: #2C2C2C;
    --text-light: #6B6B6B;
    --error: #C41E3A;
    --success: #2E7D32;
    --shadow-soft: 0 4px 20px rgba(89, 66, 37, 0.08);
    --shadow-medium: 0 8px 40px rgba(89, 66, 37, 0.12);
    --shadow-large: 0 12px 60px rgba(89, 66, 37, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* Left Panel - Hero Section */
.hero-panel {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: -10%;
    background-image: url('../img/bg.jpg');
    background-size: cover;
    background-position: center;
    animation: continuousMove 30s linear infinite;
    will-change: transform;
    z-index: 0;
}

.hero-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(89, 66, 37, 0.85) 0%, rgba(89, 66, 37, 0.75) 100%);
    z-index: 1;
}

@keyframes continuousMove {
    0% { 
        transform: translate(0, 0) scale(1.1);
    }
    25% {
        transform: translate(-3%, -3%) scale(1.15);
    }
    50% { 
        transform: translate(-5%, -5%) scale(1.2);
    }
    75% {
        transform: translate(-3%, -3%) scale(1.15);
    }
    100% { 
        transform: translate(0, 0) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
}

.hero-logo {
    margin-bottom: 48px;
}

.hero-logo img {
    height: 100px;
    width: auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(184, 147, 103, 0.2);
    border: 1px solid rgba(184, 147, 103, 0.4);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: 'URW Classico', serif;
    font-size: 56px;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 48px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 15px;
    font-weight: 400;
    opacity: 0.95;
}

.hero-feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(184, 147, 103, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-feature-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--bronze-light);
}

/* Right Panel - Login Form */
.login-panel {
    width: 50%;
    min-width: 500px;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    position: relative;
}

.login-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bronze-primary), var(--bronze-dark), var(--bronze-primary));
}

.login-container {
    width: 100%;
    max-width: 420px;
    animation: fadeInRight 1s ease-out;
}

.login-header {
    margin-bottom: 48px;
    text-align: center;
}

.login-logo {
    margin-bottom: 32px;
}

.login-logo img {
    height: 50px;
    width: auto;
}

.login-title {
    font-family: 'URW Classico', serif;
    font-size: 36px;
    font-weight: 600;
    color: var(--dark-luxury);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.login-subtitle {
    font-size: 15px;
    color: var(--text-light);
    font-weight: 400;
    line-height: 1.6;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-luxury);
    letter-spacing: 0.3px;
}

.form-label-required {
    color: var(--bronze-primary);
    margin-left: 2px;
}

.phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid rgba(184, 147, 103, 0.3);
    border-radius: var(--radius-md);
    padding: 4px;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.phone-input-wrapper:focus-within {
    border-color: var(--bronze-primary);
    box-shadow: 0 0 0 4px rgba(184, 147, 103, 0.15);
    transform: translateY(-1px);
}

.phone-input-wrapper.error {
    border-color: var(--error);
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.15);
}

.phone-input-wrapper.success {
    border-color: var(--success);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.15);
}

.country-flag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 15px;
    color: var(--dark-luxury);
    flex-shrink: 0;
}

.country-flag-img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.country-code {
    padding: 14px 0;
    /*
    border-left: 2px solid rgba(184, 147, 103, 0.3);
    */
    padding-left: 16px;
    font-weight: 500;
    font-size: 16px;
    color: var(--dark-luxury);
    flex-shrink: 0;
}

.phone-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 16px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--text-dark);
    background: transparent;
    letter-spacing: 0.5px;
}

.phone-input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.form-helper {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 400;
    line-height: 1.5;
    margin-top: -4px;
}

.form-error {
    font-size: 13px;
    color: var(--error);
    font-weight: 500;
    margin-top: -4px;
    display: none;
    align-items: center;
    gap: 6px;
}

.form-error.visible {
    display: flex;
}

.form-error svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.submit-btn {
    position: relative;
    background: linear-gradient(135deg, var(--bronze-primary) 0%, var(--bronze-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    padding: 18px 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(184, 147, 103, 0.3);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184, 147, 103, 0.4);
    background: linear-gradient(135deg, var(--bronze-dark) 0%, var(--bronze-primary) 100%);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-btn.loading {
    pointer-events: none;
}

.submit-btn .btn-text {
    position: relative;
    z-index: 1;
}

.submit-btn .btn-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.submit-btn.loading .btn-text {
    visibility: hidden;
}

.submit-btn.loading .btn-loader {
    display: block;
}

.login-footer {
    margin-top: 40px;
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(184, 147, 103, 0.2);
}

.footer-text {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-text svg {
    width: 14px;
    height: 14px;
    stroke: var(--bronze-primary);
}

.brand-footer {
    margin-top: 48px;
    text-align: center;
}

.brand-footer-text {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-panel {
        padding: 60px;
    }

    .hero-title {
        font-size: 48px;
    }

    .login-panel {
        padding: 60px;
    }
}

@media (max-width: 992px) {
    body {
        flex-direction: column;
    }

    .hero-panel {
        min-height: 50vh;
        padding: 48px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .login-panel {
        width: 100%;
        min-width: auto;
        padding: 60px 40px;
    }

    .login-container {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .hero-panel {
        padding: 40px 32px;
        min-height: 45vh;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-features {
        display: none;
    }

    .login-panel {
        padding: 48px 32px;
    }

    .login-title {
        font-size: 30px;
    }

    .phone-input-wrapper {
        flex-wrap: nowrap;
    }

    .country-flag {
        padding: 12px 12px;
    }

    .country-flag-img {
        width: 20px;
        height: 14px;
    }

    .country-code {
        padding: 12px 12px;
        font-size: 15px;
    }

    .phone-input {
        padding: 12px 14px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .hero-panel {
        padding: 24px 20px;
        min-height: 35vh;
    }

    .hero-logo img {
        height: 70px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 6px 16px;
    }

    .login-panel {
        padding: 32px 20px;
    }

    .login-title {
        font-size: 24px;
    }

    .login-subtitle {
        font-size: 14px;
    }

    .phone-input-wrapper {
        flex-wrap: nowrap;
    }

    .country-flag {
        padding: 10px 10px;
        gap: 6px;
    }

    .country-flag-img {
        width: 18px;
        height: 12px;
    }

    .country-flag span {
        font-size: 13px;
    }

    .country-code {
        padding: 10px 10px;
        font-size: 14px;
    }

    .phone-input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .form-label {
        font-size: 13px;
    }

    .form-helper {
        font-size: 12px;
    }
}

/* Focus states for accessibility */
.phone-input:focus {
    outline: none;
}

/* Print styles */
@media print {
    .hero-panel {
        display: none;
    }

    .login-panel {
        width: 100%;
        min-width: auto;
    }
}


.form-error {
    color: #dc2626;
    font-size: 14px;
    margin-top: 6px;
    display: block;
}

.is-invalid {
    border: 1px solid #dc2626 !important;
}

.form-error {
    display: none;
}

.phone-input.is-invalid {
    border: none !important;
    box-shadow: none !important;
}