* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', 'Geomanist', Arial, sans-serif;
    background-color: #3A77FF;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated circle like OLX */
body::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto 0;
    width: 90vw;
    height: 90vw;
    min-height: 768px;
    min-width: 768px;
    max-width: 1236px;
    max-height: 1236px;
    border: 150px solid #CEDDFF;
    border-radius: 50%;
    animation: scaleCircle 1.6s ease-in-out forwards;
    pointer-events: none;
}

@keyframes scaleCircle {
    0% {
        transform: scale(0.2);
        opacity: 0.2;
    }
    80% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.background {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    padding: 20px;
}

.card {
    background-color: #FFFFFF;
    border-radius: 4px;
    box-shadow: 0 6px 24px rgba(19, 27, 29, 0.08);
    width: 400px;
    max-width: 100%;
    padding: 24px;
    position: relative;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    gap: 16px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #F2F4F5;
    border-top-color: #02282C;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay p {
    color: #02282C;
    font-size: 14px;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.social-button {
    width: 100%;
    height: 48px;
    border: 2px solid #02282C;
    background-color: #FFFFFF;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: background-color 0.2s;
}

.social-button:hover {
    background-color: #F6F8F9;
}

.social-button svg {
    width: 20px;
    height: 20px;
}

/* Separator OU */
.or-separator {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 16px 0;
}

.or-line {
    background: #7F9799;
    flex-grow: 1;
    height: 1px;
}

.or-text {
    color: #02282C;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.7px;
    line-height: 16px;
    margin: 0 24px;
    text-transform: uppercase;
    user-select: none;
}

/* Tabs */
.tabs {
    display: flex;
    margin-top: 8px;
    margin-bottom: 8px;
}

.tab {
    flex: 1;
    padding: 14px 0;
    font-weight: 500;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    background: none;
    border: none;
    transition: all 0.2s;
}

.tab.active {
    border-bottom: 3px solid #02282C;
    color: #02282C;
    font-weight: 600;
    box-shadow: inset 0 -3px 0 0 #02282C;
}

.tab:not(.active) {
    border-bottom: 1px solid #7F9799;
    color: #406367;
}

.tab:not(.active):hover {
    box-shadow: inset 0 -5px 0 0 #02282C;
}

/* Error Banner */
.error-banner {
    background-color: #FFF5F5;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #E64646;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-banner-content {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
}

.error-icon {
    flex-shrink: 0;
}

.error-message-text {
    flex: 1;
    text-align: left;
}

.error-text {
    font-size: 14px;
    color: #E64646;
    line-height: 1.4;
    margin: 0;
}

.error-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7F9799;
    transition: color 0.2s;
    flex-shrink: 0;
}

.error-close:hover {
    color: #02282C;
}

/* Forms */
.form {
    margin-top: 16px;
}

.login-form {
    display: block;
}

.register-form {
    display: none;
}

/* Input Groups */
.input-group {
    margin-bottom: 8px;
    text-align: left;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #02282C;
    margin-bottom: 4px;
}

/* Input Wrapper for error icon */
.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper input {
    width: 100%;
    height: 48px;
    padding: 14px 40px 14px 16px;
    border-radius: 4px;
    border: none;
    background-color: #F2F4F5;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}

.input-wrapper input:focus {
    border-bottom: 2px solid #02282C;
    border-radius: 4px 4px 0 0;
}

.input-wrapper input.error-input {
    border: 1px solid #E64646;
    background-color: #FFF5F5;
}

/* Error icon inside input */
.input-error-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #E64646;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Password Field */
.password-field {
    position: relative;
}

.password-field input {
    width: 100%;
    height: 48px;
    padding: 14px 70px 14px 16px;
    border-radius: 4px;
    border: none;
    background-color: #F2F4F5;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}

.password-field input:focus {
    border-bottom: 2px solid #02282C;
    border-radius: 4px 4px 0 0;
}

.password-field input.error-input {
    border: 1px solid #E64646;
    background-color: #FFF5F5;
}

.password-field .input-error-icon {
    right: 48px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #406367;
}

.toggle-password:hover {
    color: #02282C;
}

/* Field Error Text */
.field-error {
    font-size: 12px;
    color: #E64646;
    margin-top: 4px;
    display: none;
    text-align: left;
}

.field-error.show {
    display: block;
}

/* Forgot Password */
.forgot-password {
    display: block;
    margin-top: 16px;
    text-align: left;
    color: #02282C;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Submit Button */
.submit-button {
    width: 100%;
    height: 48px;
    background-color: #02282C;
    color: white;
    font-weight: 700;
    font-size: 16px;
    font-family: inherit;
    border-radius: 4px;
    margin-top: 24px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.submit-button:hover {
    opacity: 0.9;
}

.submit-button:disabled {
    background-color: #D8DFE0;
    cursor: not-allowed;
    opacity: 1;
}

/* Success Button State */
.submit-button.success {
    background-color: #00A870;
}

/* Terms */
.terms {
    margin-top: 32px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #02282C;
    text-align: center;
    line-height: 1.4;
}

.terms a {
    color: #02282C;
    font-weight: 600;
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
    body {
        background-color: #FFFFFF;
    }
    body::before {
        display: none;
    }
    .card {
        box-shadow: none;
        padding: 16px;
    }
}
/* Защита от копирования */
body {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
