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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 20px;
}

/* Auth Styles */
.auth-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    background: #f8f9fa;
}

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

.tab-btn.active {
    background: white;
    color: #667eea;
    font-weight: bold;
}

.auth-form {
    padding: 40px;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.auth-form input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

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

.auth-form button {
    width: 100%;
    padding: 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.auth-form button:hover {
    background: #5a6fd8;
}

/* Quote Calculator Styles */
.quote-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: #667eea;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 24px;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.calculator {
    padding: 40px;
}

.step {
    margin-bottom: 30px;
}

.step label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.step input[type="number"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
}

.step input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
}

.step h3 {
    margin-bottom: 20px;
    color: #333;
}

.material-options {
    display: grid;
    gap: 15px;
}

.material-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.material-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.material-option input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.2);
}

.material-option span {
    font-size: 16px;
    color: #333;
}

.calculate-btn, .new-quote-btn {
    width: 100%;
    padding: 15px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 20px;
}

.calculate-btn:hover, .new-quote-btn:hover {
    background: #218838;
}

.quote-result {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin-top: 30px;
}

.quote-result h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

.result-details p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #e1e5e9;
}

.result-details p.total {
    font-size: 20px;
    color: #28a745;
    border-bottom: 3px solid #28a745;
    margin-top: 20px;
    padding-top: 20px;
}

.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
    }
    
    .auth-form, .calculator {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 18px;
    }
    
    .material-options {
        grid-template-columns: 1fr;
    }
}