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

:root {
    --primary-color: #d00e46;
    --text-primary: #292929;
    --text-secondary: #909090;
    --input-bg: rgba(0, 0, 0, 0.1);
    --border-color: rgba(0, 0, 0, 0.1);
    --white: #ffffff;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--white);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Background vector */
.background-vector {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background-image: url('assets/41375ae6b6bcc391db8d99b8948953d45b8da2af.svg');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    opacity: 1;
}

.bg-image {
    display: none;
}

/* Logo */
.logo-container {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
    width: 70%;
    max-width: 400px;
    display: flex;
    justify-content: center;
}

.logo {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* Login container */
.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 426px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 1;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 36px;
}

/* Login form */
.login-form {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 21px;
    margin-bottom: 21px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.form-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1;
    color: var(--text-primary);
    padding: 0 5px;
    letter-spacing: -0.8px;
}

.form-input {
    width: 100%;
    background: var(--input-bg);
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--text-primary);
    letter-spacing: -0.7px;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: var(--text-secondary);
}

.form-input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.15);
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper .form-input {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.eye-closed {
    display: none;
}

.password-toggle:hover {
    opacity: 1;
}

.password-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.login-button {
    width: 100%;
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    padding: 9px 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1;
    color: var(--white);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-button:hover {
    background: #b00c3a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(208, 14, 70, 0.3);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(208, 14, 70, 0.2);
}

/* Divider */
.divider-container {
    width: 100%;
    max-width: 426px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 21px;
    position: relative;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
}

.divider-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
    color: var(--text-primary);
    white-space: nowrap;
}

.social-icons {
    width: 100%;
    max-width: 426px;
    display: flex;
    justify-content: center;
}

.social-divider {
    width: 100%;
    max-width: 426px;
    height: auto;
}

/* Info box */
.info-box {
    position: absolute;
    top: 30px;
    right: 30px;
    background: var(--white);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.8);
    z-index: 2;
    max-width: 300px;
}

.info-box p {
    margin: 0;
}

/* Mobile adaptations */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        min-height: 100vh;
    }

    .background-vector {
        background-size: cover;
        background-position: center;
    }

    .logo-container {
        margin-bottom: 30px;
        max-width: 280px;
    }

    .title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .login-form {
        padding: 16px;
        gap: 18px;
        border-radius: 16px;
    }

    .form-label {
        font-size: 14px;
    }

    .form-input {
        padding: 12px;
        font-size: 14px;
    }

    .password-wrapper .form-input {
        padding-right: 40px;
    }

    .login-button {
        padding: 12px 10px;
        font-size: 18px;
    }

    .divider-container {
        max-width: 100%;
        margin-bottom: 18px;
    }

    .divider-text {
        font-size: 12px;
    }

    .social-icons {
        max-width: 100%;
    }

    .info-box {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 20px;
        max-width: 100%;
        width: 100%;
        font-size: 13px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .background-vector {
        background-size: cover;
        background-position: center;
    }

    .logo-container {
        margin-bottom: 20px;
        max-width: 240px;
    }

    .title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .login-form {
        padding: 14px;
        gap: 16px;
        border-radius: 12px;
    }

    .form-label {
        font-size: 13px;
    }

    .form-input {
        padding: 10px;
        font-size: 13px;
    }

    .login-button {
        padding: 10px;
        font-size: 16px;
    }

    .divider-text {
        font-size: 11px;
    }

    .info-box {
        font-size: 12px;
        padding: 10px;
    }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .container {
        padding: 10px;
    }

    .logo-container {
        margin-bottom: 15px;
        max-width: 200px;
    }

    .title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .login-form {
        padding: 12px;
        gap: 12px;
    }

    .info-box {
        margin-top: 15px;
        padding: 8px;
        font-size: 11px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.form-input:focus-visible,
.login-button:focus-visible,
.password-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

