* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 25px;
    text-align: center;
}

.header h1 {
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 5px;
}

.header p {
    opacity: 0.9;
    font-size: 14px;
}

.message-container {
    padding: 15px;
    margin: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.error-message-container {
    background-color: #ffebee;
    color: #d32f2f;
    border: 1px solid #f5c6cb;
}

.success-message-container {
    background-color: #e8f5e9;
    color: #388e3c;
    border: 1px solid #c3e6cb;
}

.debug-container {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 15px;
    margin: 15px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 12px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.debug-container[style*="block"] {
    display: block;
}

.debug-toggle {
    text-align: center;
    margin: 10px;
}

.debug-toggle a {
    color: #4facfe;
    text-decoration: none;
    font-size: 12px;
}

.form-container {
    padding: 25px;
}

.form-title {
    text-align: center;
    margin-bottom: 25px;
    color: #343a40;
    font-weight: 600;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.input-field {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-field:focus {
    border-color: #4facfe;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2);
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
    margin-top: 10px;
}

.toggle-password:hover {
    color: #4facfe;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.btn-container {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.login-link {
    text-align: center;
    margin-top: 20px;
    color: #6c757d;
}

.login-link a {
    color: #4facfe;
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

.password-strength {
    margin-top: 5px;
    font-size: 14px;
    display: none;
}

.strength-weak {
    color: #dc3545;
}

.strength-medium {
    color: #ffc107;
}

.strength-strong {
    color: #28a745;
}

.referral-note {
    background-color: #e8f4fd;
    border-left: 4px solid #4facfe;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

@media (max-width: 576px) {
    .container {
        border-radius: 10px;
    }
    
    .header {
        padding: 20px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .btn-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
}