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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-image: url('ideogram-v3.0_Clean_white_background_with_a_small_elegant_white_robot_illustration_in_the_cent-0.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #1F2937;
    min-height: 100vh;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 0;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 24px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.header-section {
    margin-bottom: 32px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: nowrap;
}

.text-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.illustration {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    margin-top: -10px;
}

.illustration svg {
    width: 100%;
    height: 100%;
}

.brand-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.main-title {
    font-size: 32px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 8px;
    line-height: 1.2;
}

.subtitle {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.4;
}

.content-section {
    flex: 1;
    max-width: 100%;
    width: 100%;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.alert-error {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-success {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.auth-form {
    width: 100%;
}

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

.field-label {
    display: block;
    position: relative;
    margin-bottom: 8px;
}

.label-text {
    position: relative;
    display: inline-block;
    background-color: #FFFFFF;
    padding: 0 8px;
    font-size: 14px;
    font-weight: 500;
    color: #9CA3AF;
    z-index: 1;
}

.field-label::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background-color: #E5E7EB;
    z-index: 0;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    pointer-events: none;
}

.input-icon svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.phone-icon {
    left: 14px;
}

.phone-prefix {
    font-size: 15px;
    font-weight: 600;
    color: #4B5563;
    margin-left: 4px;
    line-height: 1;
}

.form-input {
    width: 100%;
    padding: 16px 16px 16px 75px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 16px;
    color: #1F2937;
    background-color: #FFFFFF;
    transition: all 0.2s ease;
    font-family: inherit;
}

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

.form-input::placeholder {
    color: #9CA3AF;
}

.form-input:focus {
    outline: none;
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    transition: color 0.2s;
    z-index: 2;
}

.toggle-password:hover {
    color: #6B7280;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background-color: #B3FF00;
    color: #1F2937;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 8px;
    font-family: inherit;
}

.btn-primary:hover {
    background-color: #9EE600;
}

.btn-primary:active {
    background-color: #8ACC00;
}

.btn-primary:disabled {
    background-color: #9CA3AF;
    cursor: not-allowed;
}

.footer-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #9CA3AF;
}

.footer-link a {
    color: #B3FF00;
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
    transition: color 0.2s;
}

.footer-link a:hover {
    color: #9EE600;
    text-decoration: underline;
}

/* Tablet and Desktop */
@media (min-width: 768px) {
    .container {
        max-width: 500px;
        margin: 0 auto;
        padding: 40px 24px;
    }
    
    .illustration {
        width: 150px;
        height: 150px;
    }
    
    .main-title {
        font-size: 48px;
    }
    
    .subtitle {
        font-size: 16px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 600px;
    }
}

@media (max-width: 480px) {
    .header-content {
        gap: 12px;
    }
    
    .illustration {
        width: 100px;
        height: 100px;
        margin-top: 0;
    }
    
    .main-title {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 13px;
    }
    
    .phone-prefix {
        font-size: 14px;
    }
    
    .form-input {
        padding-left: 70px;
    }
    
    .phone-icon {
        left: 12px;
    }
}
