:root {
    --main-bg-color: #f5f7fa;
    --accent-color: #4CAF50;
    --text-color: #333;
    --error-color: #ff3e3e;
    --success-color: #4CAF50;
    --input-border: #ddd;
    --modal-bg: rgba(0, 0, 0, 0.8);
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 0;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

header {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.logo img {
    height: 40px;
    width: auto;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.auth-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 100;
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--input-border);
}

.tab-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: none;
    font-size: 16px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    margin-bottom: -2px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.selected-services {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

.selected-services h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: var(--text-color);
    text-align: center;
}

#selectedServicesList {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.selected-service-tag {
    background: var(--accent-color);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selected-service-tag i {
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.selected-service-tag i:hover {
    opacity: 1;
}

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

.form-group input {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid var(--input-border);
    outline: none;
    transition: all 0.3s ease;
    background: transparent;
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 16px;
    color: #999;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label {
    top: -20px;
    font-size: 12px;
    color: var(--accent-color);
}

.form-group input:focus {
    border-bottom-color: var(--accent-color);
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox input {
    width: auto;
}

.checkbox label {
    position: static;
    font-size: 14px;
    color: var(--text-color);
}

.rules-link {
    color: var(--accent-color);
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.forgot-password {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 14px;
}

.password-strength {
    height: 3px;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.password-strength.weak { background: var(--error-color); width: 25%; }
.password-strength.medium { background: #ffa500; width: 50%; }
.password-strength.strong { background: #ffd700; width: 75%; }
.password-strength.very-strong { background: var(--success-color); width: 100%; }

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-bg);
    z-index: 1000;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.modal-buttons button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accept-btn {
    background: var(--accent-color);
    color: white;
}

.decline-btn {
    background: var(--error-color);
    color: white;
}

footer {
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 20px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.copyright {
    color: var(--text-color);
    margin: 0;
}

.author {
    color: #888;
    margin: 5px 0 0 0;
    font-size: 14px;
}

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

    .tab-btn {
        padding: 10px;
        font-size: 14px;
    }

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

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

    .submit-btn {
        padding: 12px;
        font-size: 14px;
    }
}
