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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.logo p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0.75rem 1.5rem;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-btn.logout {
    background: rgba(244, 67, 54, 0.3);
}

.nav-btn.logout:hover {
    background: rgba(244, 67, 54, 0.5);
}

.main {
    display: flex;
    justify-content: center;
}

.auth-section {
    width: 100%;
    max-width: 400px;
}

.auth-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 5px;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-group small {
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-container input {
    flex: 1;
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #667eea;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.password-toggle:hover {
    background-color: rgba(102, 126, 234, 0.1);
}

.password-requirements {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.requirement {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.requirement:last-child {
    margin-bottom: 0;
}

.requirement.valid {
    color: #4caf50;
}

.requirement.invalid {
    color: #f44336;
}

.requirement.valid::before {
    content: "✓ ";
    font-weight: bold;
}

.requirement.invalid::before {
    content: "✗ ";
    font-weight: bold;
}

.btn {
    width: 100%;
    padding: 0.875rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.app-section {
    width: 100%;
    max-width: 800px;
}

.horoscope-card, .profile-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.card-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.zodiac-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    margin-bottom: 1rem;
}

.zodiac-symbol {
    font-size: 2rem;
}

.zodiac-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.zodiac-details p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.horoscope-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    text-align: center;
    padding: 1.5rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.history-content {
    max-height: 500px;
    overflow-y: auto;
}

.history-item {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}

.history-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.history-date {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.history-text {
    line-height: 1.6;
    color: #555;
}

.profile-content {
    text-align: center;
}

.profile-info {
    display: grid;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.profile-field {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
}

.profile-label {
    font-weight: 600;
    color: #333;
}

.profile-value {
    color: #667eea;
    font-weight: 500;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

.error-message, .success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    z-index: 1000;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.error-message.show, .success-message.show {
    opacity: 1;
    transform: translateX(0);
}

.error-message {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.success-message {
    background: #e8f5e8;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .auth-container, .horoscope-card, .profile-card {
        padding: 1.5rem;
    }
    
    .zodiac-info {
        flex-direction: column;
        text-align: center;
    }
}

.content-section {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
